The '''AvatarManager''' component is found on User root slots and is used to manage avatars equipped to a particular user. It also keeps track of and sets the equipped parameters of [[Component:AvatarObjectSlot]]s under an avatar, It manages the setting of fields on the [[Component:AvatarRoot]] and [[Component:AvatarGroup]] components.
<!--T:2-->
== Intoduction ==
<!--T:3-->
<!--T:3-->
== Usage ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|_objectGroups|EquippedGroup|
|_objectGroups|{{RootFieldType|SyncList`1|[[#EquippedGroup|EquippedGroup]]}}|TypeAdv0=true| A list of objects currently equipped by the user as part of an avatar.
|_currentAnchor|AvatarAnchor|
|_currentAnchor|{{RootFieldType|LinkRef`1|[[Component:AvatarAnchor|AvatarAnchor]]}}|TypeAdv1=true| The anchor the user associated with this component is currently sitting in.
|AutoAddNameBadge|Bool|
|AutoAddNameBadge|Bool| Whether to auto add the name badge component if it doesn't exist on an avatar when equipping it. Usually managed by the world through the [[Component:CommonAvatarBuilder]]
|AutoAddIconBadge|Bool|
|AutoAddIconBadge|Bool| Whet
|AutoAddLiveIndicator|Bool|
|AutoAddLiveIndicator|Bool|
|EmptySlotHandler|IEmptyAvatarSlotHandler|
|EmptySlotHandler|IEmptyAvatarSlotHandler| The object to handle empty avatar slots. Usually defined by the world through the [[Component:CommonAvatarBuilder]].
|NameTagText|String|
|DefaultScale|Float| The default scale multiplier of the avatar currently equipped
|NameTagColor|Color|
|NameTagText|String| The text that should be assigned to the avatar nametag's text field list
|NameTagOutline|Color|
|NameTagColor|ColorX| The color that should be assigned to the avatar nametag's color list.
|NameTagBackground|Color|
|NameTagOutline|ColorX| The color that should be assigned to the avatar nametag's color1 list.
|_badgeTemplates|Slot|
|NameTagBackground|ColorX| The color.that should be assigned to the avatar nametag's color background list.
|_autoNameBadge|Slot|
|_badgeTemplates|Slot| the slot that was made for the user for storage of their badges.
|_autoIconBadge|Slot|
|_autoNameBadge|Slot| the slot that was made for the user for their name badge.
|_autoLiveIndicator|Slot|
|_autoIconBadge|Slot| the slot that was made for the user for their Icon.
|_autoLiveIndicator|Slot| The slot that was made for the user for their live indicator
|_updateVersion|Int| Internal.
}}
== EquippedGroup ==
Equipped group is internally handled as a type to hold data from a Dictionary<[[Component:AvatarRoot]], {{RootFieldType|SyncList`1|[[Component:AvatarObjectSlot]]}}>
{{Table TypeFields
|Root|[[Component:AvatarRoot|AvatarRoot]]|TypeAdv0=true| The avatar root associated with the currently equipped avatar.
|ObjectSlots|{{RootFieldType|SyncList`1|[[Component:AvatarObjectSlot]]}}|TypeAdv1=true| The list of currently equipped object nodes associated with <code>Root</code>.
}}
}}
<!--T:4-->
<!--T:4-->
== Behavior ==
== Usage ==
Should not be used directly by the player, since this is used by the game instead to manage avatars on a user.
The AvatarManager component is found on User root slots and is used to manage avatars equipped to a particular user. It also keeps track of and sets the equipped parameters of Component:AvatarObjectSlots under an avatar, It manages the setting of fields on the Component:AvatarRoot and Component:AvatarGroup components.
Whether to auto add the name badge component if it doesn't exist on an avatar when equipping it. Usually managed by the world through the Component:CommonAvatarBuilder