LocalAvatarIndex
: int
[Get][Set] |
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][Set] |
Represents the id of the Oculus account logged in the current headset.
Defaults to 0 if it could not be fetched.
Signature
ulong OculusId |
FixedUpdateNetwork
()
|
Called by the Photon Fusion networking framework on every network update tick.
This method syncs the Avatar position to the player's Camera Rig.
Signature
override void FixedUpdateNetwork() Returns override void |
ReceiveStreamData
(
bytes
)
|
Loads a serialized avatar state and update it in the local client.
An implementation of the IAvatarBehaviour interface.
Signature
void ReceiveStreamData(byte[] bytes) Parameters bytes: byte[]Â
A byte stream containing the serialized avatar state.
Returns void |
Spawned
()
|
Called by the Photon Fusion networking framework when the network object is spawned.
This method does the required setup for the Avatar state synchronization.
Signature
override void Spawned() Returns override void |