DefaultAvatarRenderer Class |
Namespace: ImmerseSDK
public class DefaultAvatarRenderer : AvatarRenderer
The DefaultAvatarRenderer type exposes the following members.
Name | Description | |
---|---|---|
DefaultAvatarRenderer | ||
DefaultAvatarRenderer | Initializes a new instance of the DefaultAvatarRenderer class |
Name | Description | |
---|---|---|
GetColorForVisualId |
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).) | |
Init |
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).) | |
SetVisualId |
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).) |
Name | Description | |
---|---|---|
GetCopyOf |
Copies all properties of a component from source to target. Uses reflection to set properties.
(Defined by ComponentExtensions.) | |
WaitForT |
Waits for a singleton on a coroutine
(Defined by SingletonManager.) |