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
Name | Type | Description |
---|---|---|
containerObject | GameObject | gameobject where the component will be added |
peerId | UInt64 | id of |
enable | Boolean | flag if the new |
Returns
Type | Description |
---|---|
OdinPeer | created component |