Click or drag to resize

Avatar Methods

The Avatar type exposes the following members.

Methods
  NameDescription
Public methodAreAnyControllersEngaged
Returns true if any of the controllers are currently engaging with an object
Protected methodAttachControllers
Public methodStatic memberFind(UserID) Obsolete.
Returns the user avatar for the given user id
Public methodStatic memberFindT(UserID) Obsolete.
Returns the user avatar for the given user id, cast to the given type or interface
Public methodStatic memberFindLocal Obsolete.
Returns the local user avatar
Public methodStatic memberFindLocalT Obsolete.
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
Protected methodHandleOwnerStateChanged
Public methodIsLocal
Returns true if the avatar is a local one
Protected methodOnDestroy
Unity component method
Protected methodOnTrackedTransformToggled
Public methodSelectAvatarCameraTarget
Enable the avatar camera target
Protected methodSetLayers
Sets the layer of all game objects attached to this avatar
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
Protected methodUpdateRendererVisibility
Updates the visibility of the avatar renderer component associated with the given ToggleNotifier
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