User:PJB/AssetProxyTest

From Resonite Wiki
Component image 
Asset Proxy`1 component as seen in the Scene Inspector

Asset Proxy is a component that allows for access to an asset through a slot when being grabbed by the user.

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.
AssetReference A The asset to expose to asset ref fields when grabbing the object root of the slot this component is on.

Generic Parameters

This type has one or more generic parameters.

A

Generic Parameter
Name: A
Required Type: IAsset`1

The type of asset proxied.

Usage

put this component on a slot and fill the AssetReference with an asset reference to allow access to an asset via holding this slot's object root. The asset will then be available when holding onto the object root of the slot this component is on, and clicking on a UIX field (ex: an inspector field) places the asset type that this component has inside of it into the field.

Examples

This is used on items like imported audio clips and images, to allow them to be used and dropped into inspector fields.

Related Components