(2 intermediate revisions by one other user not shown)
Line 4:
Line 4:
}}
}}
The '''UIGrabInstancer''' component allows [[User|users]] to instance items from [[UIX]] elements from a template a user provides. This component is similar to the [[Component:GrabInstancer|GrabInstancer]] component.
The '''UIGrabInstancer''' component allows [[User|users]] to instance items from [[UIX]] elements from a template a user provides.
{{Table ComponentFields
{{Table ComponentFields
Line 12:
Line 12:
|ActivateRoot|Bool| Whether or not the GrabInstancer should activate the newly duplicated slot.
|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.
|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| Persistence of the instance
|SetInstancePersistent|'''[[Type:Nullable`1|Nullable`1]]<[[Type:Bool|Bool]]>'''|TypeAdv5=true| Persistence of the instance
|ExcludedParts|{{RootFieldType|SyncRefList`1|[[Type:Slot|Slot]]}}| Slots will be skipped while duplicating
|ExcludedParts|{{RootFieldType|SyncRefList`1|[[Type:Slot|Slot]]}}|TypeAdv6=true| Slots will be skipped while duplicating
}}
}}
== Usage ==
== Usage ==
Useful for making copies of items you referenced, but specifically from the [[UIX]] panels you have.
Useful for making copies of items you referenced, but specifically from the [[UIX]] panels you have.
{{Note|The way this component instances the template, will spawn the copied item where the template is. So it is usually recommended to place the template where the instancer is so it is not jarring when attempting to grab a copy of the [[Slot]]. (the other way is to use [[ProtoFlux]] to recenter where the user's hand is to adjust for the distance.)|warning}}
== Examples ==
== Examples ==
Line 25:
Line 27:
== Related Components ==
== Related Components ==
[[Category:Components]]
* [[Component:GrabInstancer|GrabInstancer]] is similar to this component, but uses the grab feature in [[Resonite]] to make a copy of an item template.
Useful for making copies of items you referenced, but specifically from the UIX panels you have.
The way this component instances the template, will spawn the copied item where the template is. So it is usually recommended to place the template where the instancer is so it is not jarring when attempting to grab a copy of the Slot. (the other way is to use ProtoFlux to recenter where the user's hand is to adjust for the distance.)