Click or drag to resize

DefaultAvatarRenderer Methods

The DefaultAvatarRenderer type exposes the following members.

Methods
  NameDescription
Public methodGetColorForVisualId
Returns a 32bit color value that you have associated with this avatar. The value returned here will be used by the Immerse SDK for things such as highlighting interactive objects and coloring the user's camera button in WebGL.
(Overrides AvatarRendererGetColorForVisualId(Byte).)
Public methodInit
Initialises this avatar renderer, before the SDK can access it. Called by the Immerse SDK when this avatar renderer is attached to it's parent avatar transform in the scene. Use this method to setup the internal state of this avatar renderer based on the state of the application. For example: enable different head or hands, depending on whether the avatar is a local or remote representation.
(Overrides AvatarRendererInit(Avatar).)
Public methodSetVisualId
Sets the visual identity of this avatar. Called by the Immerse SDK when a unique index has been assigned to this avatar's user. Use this to select a unique appearence for each avatar in the scene, other avatars are guaranteed to have a different visualId value.
(Overrides AvatarRendererSetVisualId(Byte).)
Top
Extension Methods
  NameDescription
Public Extension MethodGetCopyOf
Copies all properties of a component from source to target. Uses reflection to set properties.
(Defined by ComponentExtensions.)
Public Extension MethodWaitForT
Waits for a singleton on a coroutine
(Defined by SingletonManager.)
Top
See Also