Class Avatar
Modder-facing wrapper for an Avatar component in the game. Provides access to avatar appearance and state without exposing game types.
public sealed class Avatar
- Inheritance
-
Avatar
- Inherited Members
- Extension Methods
Properties
GameObject
The GameObject associated with this avatar.
public GameObject GameObject { get; }
Property Value
- GameObject
IsActive
Whether the avatar GameObject is active.
public bool IsActive { get; }
Property Value
Methods
FindInScene(bool)
Finds all Avatar instances in the current scene.
public static Avatar[] FindInScene(bool includeInactive = false)
Parameters
includeInactiveboolWhether to include inactive GameObjects in the search.
Returns
- Avatar[]
An array of Avatar wrappers found in the scene.
LoadAvatarSettings(AvatarSettings)
Loads avatar settings onto this avatar.
public void LoadAvatarSettings(AvatarSettings settings)
Parameters
settingsAvatarSettingsThe avatar settings to load.