Component:AvatarUserReferenceAssigner

From Resonite Wiki
Revision as of 22:59, 31 December 2024 by 989onan (talk | contribs) (add needed info)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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.

Fields

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 How to use the list when assigning users to User storage fields.
References list of SyncRef`1<User> The references to scan through when assigning.

Mode

Values
Name Value Description
WhiteList 0 Assign and unassign the values of only the User storage fields specified in References
AutoscanWithBlacklist 1 Assign and Unassign the values of every User storage field in the avatar hierarchy except for the ones specified in References


Usage

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

Examples

See Also