Click or drag to resize

AvatarService Class

Manages avatars
Inheritance Hierarchy
SystemObject
  UnityEngine.Object
    UnityEngine.Component
      UnityEngine.Behaviour
        UnityEngine.MonoBehaviour
          ImmerseSDKLoggingBehaviour
            ImmerseSDKSingletonBehaviour
              ImmerseSDK.AvatarsAvatarService

Namespace:  ImmerseSDK.Avatars
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.9.0.0 (3.9.0.0)
Syntax
C#
public sealed class AvatarService : SingletonBehaviour

The AvatarService type exposes the following members.

Constructors
  NameDescription
Public methodAvatarService
Initializes a new instance of the AvatarService class
Top
Methods
  NameDescription
Public methodAttachCustomAvatarRenderer
Swaps the given avatar's current renderer for a custom one.
Public methodAttachDefaultAvatarRenderer
Swaps the given avatar's current renderer for the SDK's default one.
Public methodCoroutineInitialise
This method is used by our internal systems so do not call it directly.
(Overrides SingletonBehaviourCoroutineInitialise.)
Public methodSwitchLocalUserToScripted
Switch avatar to scripted avatar
Public methodToString

Returns the name of the GameObject.

(Overrides UnityEngine.Object.ToString.)
Public methodUpdateAllAvatars
Instantiate any missing avatars using their last persisted state
Top
Events
  NameDescription
Public eventOnUserVisualIdChanged
Fired when a user's visual id has changed
Top
Fields
  NameDescription
Private field_log
Public fieldIndex
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