Table of Contents

Class Avatar

Namespace
S1API.Avatar
Assembly
S1API.dll

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

bool

Methods

FindInScene(bool)

Finds all Avatar instances in the current scene.

public static Avatar[] FindInScene(bool includeInactive = false)

Parameters

includeInactive bool

Whether 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

settings AvatarSettings

The avatar settings to load.