Component:AssetReceiver

From Resonite Wiki
(Redirected from Component:AssetReceiver`1)
Component image 
Asset Receiver`1 component as seen in the Scene Inspector

Asset Receiver is a useful component for getting asset data from a user through a UIX. When this item is placed on a UIX that allows receiving (like a Button) and it's Reference field is filled, it will be active. When an item is pushed through the canvas where the button is so the interaction laser is hitting it and the item is let go; the value within the field inside of Reference is set to the first available IAsset which is exposed by an Asset Proxy.

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.
Reference AssetRef`1<A> The field to fill with a value when a grabbed item with an Asset Proxy is dropped onto the canvas region with this component.
Undoable Bool Whether to add changes to this value via grab receiving to the undo stack of the user that changed it.

Behavior

Examples

See Also