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

AvatarBehaviourNGO Class

Extends NetworkBehaviour, IAvatarBehaviour
An implementation of the IAvatarBehaviour interface to network Avatar states using Unity Netcode for Gameobjects.
This class gets or creates an AvatarEntity in the same game object and will handle the networking for it. For more information on the Meta Avatars SDK, see https://developer.oculus.com/documentation/unity/meta-avatars-overview/.

Properties

Represents the Id of the Meta account logged in the current headset.
Defaults to 0 if it could not be fetched. Implementation of the IAvatarBehaviour interface.
The index of the Avatar type used when the user defined one could not be loaded.
An implementation of the IAvatarBehaviour interface.Usually this is chosen randomly between 0 and the number of Sample Assets available for Avatars.
Indicates whether the user has input authority over this Avatar.
An implementation of the IAvatarBehaviour interface.

Member Functions

override void OnNetworkSpawn ( )
override void OnNetworkDespawn ( )
Loads a serialized avatar state and updates it in the local client.
An implementation of the IAvatarBehaviour interface.
Parameters
bytes
A byte stream containing the serialized avatar state.