Click or drag to resize

AvatarRendererHead Class

Provides references to the components that represent an avatar's head at runtime. You must attach an implementation of this class to the root game object of your custom avatar head, so that the SDK can correctly identify it's parts.
Inheritance Hierarchy
SystemObject
  UnityEngine.Object
    UnityEngine.Component
      UnityEngine.Behaviour
        UnityEngine.MonoBehaviour
          ImmerseSDK.AvatarsAvatarRendererHead
            ImmerseSDKDefaultAvatarHeadRenderer

Namespace:  ImmerseSDK.Avatars
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.7.0.0 (3.7.0.0)
Syntax
C#
public abstract class AvatarRendererHead : UnityEngine.MonoBehaviour

The AvatarRendererHead type exposes the following members.

Constructors
  NameDescription
Protected methodAvatarRendererHead
Initializes a new instance of the AvatarRendererHead class
Top
Methods
  NameDescription
Public methodHide
Hides the avatar's head. This is usually called when viewing in WebGL from an avatar's POV.
Public methodShow
Shows the avatar's head.
Public methodValidate
Validates the prefab to ensure it has been setup correctly.
Protected methodValidateReference
Validates that a component reference is not null
Top
Fields
  NameDescription
Public fieldMainRenderer
The main renderer used to display this part of the avatar
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