Component:AvatarUserReferenceAssigner: Difference between revisions

From Resonite Wiki
m ProbablePrime moved page AvatarUserReferenceAssigner (Component) to Component:AvatarUserReferenceAssigner: Creating component Namespace
Updated link.
 
(2 intermediate revisions by 2 users not shown)
Line 9: Line 9:


<!--T:2-->
<!--T:2-->
== Intoduction ==
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 ==
{{Table ComponentFields
{{Table ComponentFields
|AssignMode|Mode|  
|AssignMode|'''[[#Mode|Mode]]'''|TypeAdv0=true|
|References|SyncRef`1|TypeString1=SyncRef<User>|  
|References|{{RootFieldType|SyncRefList`1|[[Type:SyncRef`1|SyncRef`1]]&lt;[[Type:User|User]]&gt;}}|TypeAdv1=true|
}}
}}


<!--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.


<!--T:5-->
<!--T:5-->
Line 27: Line 27:
== Related Components ==
== Related Components ==
</translate>
</translate>
[[Category:Components{{#translation:}}|AvatarUserReferenceAssigner (Component){{#translation:}}]]
[[Category:Components{{#translation:}}|Avatar User Reference Assigner]]
[[Category:ComponentStubs]]
[[Category:ComponentStubs]]
[[Category:Components:Users:Common Avatar System{{#translation:}}|AvatarUserReferenceAssigner (Component){{#translation:}}]]
[[Category:Components With Nested Enums{{#translation:}}|Avatar User Reference Assigner]]
[[Category:Components:Users:Common Avatar System{{#translation:}}|Avatar User Reference Assigner]]

Latest revision as of 03:54, 19 August 2024


This article or section is a Stub. You can help the Resonite Wiki by expanding it.


Component image 
AvatarUserReferenceAssigner 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.

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled.
AssignMode Mode
References list of SyncRef`1<User>

Usage

This is often used with assigning the user reference to nameplates, and the components within.

Examples

Related Components