Component:UIGrabInstancer: Difference between revisions

From Resonite Wiki
Create page for the new UIGrabInstancer
 
m add fields (struggling with list parsing)
Line 2: Line 2:


== Usage ==
== Usage ==
{{Table ComponentFields
|Template|Slot| The slot that gets duplicated and grabbed when the GrabInstancer is grabbed.
|ContainerTemplate|Slot| Helps let you compose the duplicate
|ContainerTemplateInstanceRoot|Slot| Helps let you compose the duplicate
|ActivateRoot|Bool| Whether or not the GrabInstancer should activate the newly duplicated slot.
|EnableGrabbable|Bool| Whether or not the GrabInstancer should activate any Grabbable component on the newly duplicated slot.
|SetInstancePersistent|'''[[Type:Nullable`1|Nullable`1]]<[[Type:Bool|Bool]]>'''|TypeAdv3=true|
|ExcludedParts|{{RootFieldType|SyncRefList`1|[[Type:Slot|Slot]]}}| slots will be skipped while duplicating
}}


== Behavior ==
== Behavior ==

Revision as of 07:12, 16 April 2024

The UIGrabInstancer component allows users to instance items from UI elements

Usage

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.
Template Slot The slot that gets duplicated and grabbed when the GrabInstancer is grabbed.
ContainerTemplate Slot Helps let you compose the duplicate
ContainerTemplateInstanceRoot Slot Helps let you compose the duplicate
ActivateRoot Bool Whether or not the GrabInstancer should activate the newly duplicated slot.
EnableGrabbable Bool Whether or not the GrabInstancer should activate any Grabbable component on the newly duplicated slot.
SetInstancePersistent [[Type:Nullable`1<Bool>|Nullable`1<Bool>]]
ExcludedParts [[Type:list of Slot|list of Slot]] slots will be skipped while duplicating

Behavior

Examples

History

The UIGrabInstancer was added in Beta 2024.4.15.1407.

Related Components