Developer Documentation
Our new developer documentation is now available. Please check it out!

OdinRoom.AddPeerComponent

public OdinPeer AddPeerComponent(GameObject containerObject, ulong peerId, bool enable = true)

Add Unity to a gameobject

Parameters

NameTypeDescription
containerObjectGameObjectgameobject where the component will be added
peerIdUInt64id of
enableBooleanflag if the new component is enabled

Returns

TypeDescription
OdinPeercreated component