Click or drag to resize

Avatar Class

Encapsulates all Avatar functionality. Is abstract and have two concrete implementations: Local and Remote.
Inheritance Hierarchy

Namespace:  ImmerseSDK.Avatars
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.5.0.0 (3.5.0.0)
Syntax

The Avatar type exposes the following members.

Constructors
  NameDescription
Private methodStatic memberAvatar
Protected methodAvatar
Initializes a new instance of the Avatar class
Top
Properties
  NameDescription
Public propertyColor
This Avatar's color
Public propertyControllers
Controllers associated with this Avatar
Public propertyInitialised
True if this object has been initialsed
Protected propertyMaterialInstance
Instance of this Avatar's material. Loaded from "Avatars/AvatarVR_Material" resource
Public propertyOwner
User that owns this Avatar
Public propertyPosition
Current position in world coordinates
Public propertyRoot
Root of this avatar (the play area's center)
Public propertyRotation
Current rotation in world coordinate system
Public propertyTrackedTransformCount
Number of tracked transforms that this Avatar is using
Public propertyTransforms
Important transforms for this Avatar
Top
Methods
  NameDescription
Public methodAreAnyControllersEngaged
Returns true if any of the controllers are currently engaging with an object
Public methodStatic memberFind(UserID)
Returns the user avatar for the given user id
Public methodStatic memberFindT(UserID)
Returns the user avatar for the given user id, cast to the given type or interface
Public methodStatic memberFindLocal
Returns the local user avatar
Public methodStatic memberFindLocalT
Returns the local user avatar cast to the given type or interface
Public methodGetBounds
Returns the bounds volume that represents this avatar's location in space
Public methodGetController
Gets a reference to the controller object for the specified hand
Protected methodGetControllerSerialisation
Gets the controller serialisation implementation
Public methodIsLocal
Returns true if the avatar is a local one
Protected methodOnDestroy
Unity component method
Public methodSelectAvatarCameraTarget
Enable the avatar camera target
Public methodSetLocation(Spawn)
Sets this avatar's location based on the specified Spawn point
Public methodSetLocation(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
Protected methodShowTeleportTrail
Protected methodToggleHeadVisibility
Toggle visibility of the head mesh
Top
Events
  NameDescription
Public eventStatic memberOnAvatarDestroyed
Fired when an Avatar is destroyed
Public eventStatic memberOnAvatarInstantiated
Fired when an Avatar is instantiated
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