Component:AvatarRoot: Difference between revisions

From Resonite Wiki
Tag: 2017 source edit
Automated: update SyncDelegates
Line 18: Line 18:
|Scale|Float3| What to set the local scale of the slot this component is on to when being equipped by a user.
|Scale|Float3| What to set the local scale of the slot this component is on to when being equipped by a user.
|_originalParent|Slot| The slot this avatar was parented to before equipping.
|_originalParent|Slot| The slot this avatar was parented to before equipping.
}}
== Sync Delegates ==
{{Table ComponentTriggers
|OnEquipConfirm(IButton, ButtonEventData)|[[Type:Delegate|Delegate]]<[[Type:IButton|IButton]]: button, [[Type:ButtonEventData|ButtonEventData]]: eventData> -> [[Type:Void|Void]] : HIDDEN METHOD|
|OnEquipHeldAvatar(IButton, ButtonEventData)|[[Type:Delegate|Delegate]]<[[Type:IButton|IButton]]: button, [[Type:ButtonEventData|ButtonEventData]]: eventData> -> [[Type:Void|Void]] : HIDDEN METHOD|
}}
}}



Revision as of 22:28, 16 March 2025


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

Component image 
Avatar Root component as seen in the Scene Inspector

For detailed information on how this functions for mix and match body parts. Please also see Equipping Multiple Avatars.

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. Some components stop their functionality when this field is disabled, but some don't.
Scale Float3 What to set the local scale of the slot this component is on to when being equipped by a user.
_originalParent Slot The slot this avatar was parented to before equipping.

Sync Delegates

Lua error in mw.text.lua at line 25: bad argument #1 to 'match' (string expected, got nil).
Triggers
Method Name Method type and Arguments. Is the method hidden? Description

Usage

Examples

See Also