Avatar Class |
Namespace: ImmerseSDK.Avatars
[ScriptOrderAttribute(-30000)] public abstract class Avatar : LoggingBehaviour, IAvatar, IAvatarDataProvider, ISerialisationDataProvider, IAvatarDataConsumer, ISerialisationDataConsumer
The Avatar type exposes the following members.
Name | Description | |
---|---|---|
Color |
This Avatar's color
| |
Controllers |
Controllers associated with this Avatar
| |
Initialised |
True if this object has been initialized
| |
Owner |
User that owns this Avatar
| |
Position |
Current position in world coordinates
| |
Renderer | ||
Root |
Root of this avatar (the play area's center)
| |
Rotation |
Current rotation in world coordinate system
| |
TrackedTransformCount |
Number of tracked transforms that this Avatar is using
| |
Transforms |
Important transforms for this Avatar
|
Name | Description | |
---|---|---|
AreAnyControllersEngaged |
Returns true if any of the controllers are currently engaging with an object
| |
AttachControllers | ||
Find(UserID) | Obsolete.
Returns the user avatar for the given user id
| |
FindT(UserID) | Obsolete.
Returns the user avatar for the given user id, cast to the given type or interface
| |
FindLocal | Obsolete.
Returns the local user avatar
| |
FindLocalT | Obsolete.
Returns the local user avatar cast to the given type or interface
| |
GetBounds |
Returns the bounds volume that represents this avatar's location in space
| |
GetController |
Gets a reference to the controller object for the specified hand
| |
GetControllerSerialisation |
Gets the controller serialisation implementation
| |
HandleOwnerStateChanged | ||
IsLocal |
Returns true if the avatar is a local one
| |
OnDestroy |
Unity component method
| |
OnTrackedTransformToggled | ||
SelectAvatarCameraTarget |
Enable the avatar camera target
| |
SetLayers |
Sets the layer of all game objects attached to this avatar
| |
SetLocation(Spawn) |
Sets this avatar's location based on the specified Spawn point
| |
SetLocation(Vector3, NullableQuaternion, Boolean) |
Moves the avatar's to the specified position and rotation in worldspace.
If correctForPlaySpace is TRUE, then the Avatar's head will appear at the location specified.
If correctForPlaySpace is FALSE, then the play space's center will appear at the location specified
| |
ShowTeleportTrail | ||
ToggleHeadVisibility |
Toggle visibility of the head mesh
| |
UpdateRendererVisibility |
Updates the visibility of the avatar renderer component associated with the given ToggleNotifier
|
Name | Description | |
---|---|---|
OnAvatarDestroyed | Obsolete.
Fired when an Avatar is destroyed
| |
OnAvatarInstantiated | Obsolete.
Fired when an Avatar is instantiated
|
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.) |