API reference
API reference
Select your platform
No SDKs available
No versions available

IAvatarBehaviour Interface

Interface for serializing the Avatar state.
Currently there are implementations for Photon Fusion and Unity Netcode for Gameobjects for networking the Avatar state, but more may be added using this interface.

Properties

HasInputAuthority : bool
[Get]
Boolean indicating whether the user has input authority over this Avatar.
Signature
bool HasInputAuthority
LocalAvatarIndex : int
[Get]
Index of the Avatar type used when the user defined one could not be loaded.
Usually this is chosen randomly between 0 and the number of Sample Assets available for Avatars.
Signature
int LocalAvatarIndex
OculusId : ulong
[Get]
Represents the id of the Oculus account logged in the current headset.
Defaults to 0 if it could not be fetched.
Signature
ulong OculusId

Methods

ReceiveStreamData ( bytes )
Method to load a serialized avatar state and update it in the local client.
Signature
void ReceiveStreamData(byte[] bytes)
Parameters
bytes: byte[]  Byte stream containing the serialized avatar state.
Returns
void