Component:ReferenceGrabReceiver: Difference between revisions

From Resonite Wiki
Added more usage notes.
redirect
Tag: New redirect
 
Line 1: Line 1:
<languages></languages>
#REDIRECT[[Component:ReferenceReceiver]]
<translate>
<!--T:1-->
{{Infobox Component
|Image=ReferenceGrabReceiverComponent.png
|Name=ReferenceGrabReceiver
}}
 
The '''ReferenceGrabReceiver''' component can receive a reference dropped onto a [[UIX]] element [[Component:Button|Button]] by a [[User|user]]. The reference dropped is then stored into the field specified by <code>TargetReference</code> (an example would be to use the [[Component:ReferenceField|ReferenceField]]).
 
<!--T:3-->
{{Table ComponentFields
|TargetReference|ISyncRef| the place to store the received value, ex: the <code>Reference</code> on a [[Component:ReferenceField|Reference Field Component]]
}}
 
<!--T:4-->
== Usage ==
* Letting go when the reference you want to send into the <code>TargetReference</code> field, is currently the way on how it can trigger.
* Combining this with the [[Component:ReferenceProxySource|ReferenceProxySource]] component is a powerful way of moving references around without the need to open a [[Scene Inspector]]. Having a [[Component:ReferenceField|ReferenceField]] of [[Type:IWorldElement|IWorldElement]] as the <code>TargetReference</code> is the most recommended way of successfully transferring a reference this way.
 
<!--T:5-->
== Examples ==
This can be used to allow the user to put in slots, music, or even value fields in a [[UIX]] canvas/panel for installers/settings for different systems.
 
<!--T:6-->
== Related Components ==
</translate>
[[Category:Components{{#translation:}}|Reference Grab Receiver]]
[[Category:Components:UIX:Interaction{{#translation:}}|Reference Grab Receiver]]

Latest revision as of 01:28, 18 February 2025