Developer Documentation

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