The '''AvatarUserReferenceAssigner''' component is used to assign the [[User|user]] reference to a list of targets (depending on the <code>AssignMode</code>). This component activates only when in the [[Slot|slot]] hierarchy of an [[Avatar]] and when a user equips it.
<!--T:3-->
<!--T:3-->
== Usage ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|AssignMode|Mode|
|AssignMode|'''[[#Mode|AvatarUserReferenceAssigner.Mode]]'''|TypeAdv0=true| How to use the list when assigning users to User storage fields.
|References|SyncRef`1|TypeString1=SyncRef<User>|
|References|{{RootFieldType|SyncRefList`1|[[Type:SyncRef`1|SyncRef`1]]<[[Type:User|User]]>}}|TypeAdv1=true| The references to scan through when assigning.
}}
== Mode ==
{{Table EnumValues
|WhiteList|0| Assign and unassign the values of only the User storage fields specified in <code>References</code>
|AutoscanWithBlacklist|1| Assign and Unassign the values of every User storage field in the avatar hierarchy except for the ones specified in <code>References</code>
}}
}}
<!--T:4-->
<!--T:4-->
== Behavior ==
== Usage ==
This is often used with assigning the [[User|user]] reference to [[Nameplate#User_Referencing|nameplates]], and the components within.
[[Category:Components:Users:Common Avatar System{{#translation:}}|Avatar User Reference Assigner]]
Latest revision as of 06:00, 17 March 2025
This article or section is a Stub. You can help the Resonite Wiki by expanding it.
Component image
Avatar User Reference Assigner component as seen in the Scene Inspector
The AvatarUserReferenceAssigner component is used to assign the user reference to a list of targets (depending on the AssignMode). This component activates only when in the slot hierarchy of an Avatar and when a user equips it.