UniqueAvatarChild Class

Instantiate a prefab as a child from a array. If avatar index goes beyond the length of the array, it will loop.

Definition

Namespace: Alteruna
Assembly: Alteruna.Trinity (in Alteruna.Trinity.dll) Version: 1.3.4
C#
public class UniqueAvatarChild : CommunicationBridge
Inheritance
Object    Object    Component    Behaviour    MonoBehaviour    CommunicationBridge    UniqueAvatarChild

Remarks

Methods

GetAvatarChild Get current avatar child object.
OverwritePrefab Instantiate a new child prefab and destroy exising object.
Possessed
(Overrides CommunicationBridgePossessed(Boolean, User))
SetPrefab(UInt16) Set child prefab to target id. Wraps around if Prefabs is less than id. If child prefab already is set, replace it.
SetPrefab(User) Set child prefab to target user's index. Wraps around if Prefabs is less than id. If child prefab already is set, replace it.
TryGetAvatarChild Attempt to get current avatar child object.

Fields

Prefabs The array of prefabs to spawn as children. When index exceeds the length, loop.

See Also