An asset frame slot is a component that takes any [[Type:IAsset`1|Asset Type]] as an attach component type argument, and allows for snapping assets to a frame for reading later. Optionally it calls a sync delegate that takes an argument of the chosen asset type for this component.
An asset frame slot is a component that takes any [[Type:IAsset`1|Asset Type]] as an attach component type argument, and allows for snapping assets to a frame. The asset in the frame can be used as a source to drive a list of asset fields which is defined in Targets.
Optionally it calls a sync delegate that takes an argument of the chosen asset type for this component.
<!--T:2-->
<!--T:2-->
Line 14:
Line 15:
|FrameAnimSpeed|Float|how fast the frame should fit to the asset's bounding box in seconds
|FrameAnimSpeed|Float|how fast the frame should fit to the asset's bounding box in seconds
|SnapAnimTime|Float| How long the animation should be for the asset going into the frame when snapped in seconds.
|SnapAnimTime|Float| How long the animation should be for the asset going into the frame when snapped in seconds.
|Targets|SyncList`1|TypeString3=Asset Ref Fields| The items to drive with the snapped object's asset.
|Callback|WorldDelegate| A sync delegate that takes an argument of the chosen asset type for this component. The sync delegate is called when the asset is snapped.
|Callback|WorldDelegate| A sync delegate that takes an argument of the chosen asset type for this component. The sync delegate is called when the asset is snapped.
|_current|Slot| The slot of the asset item inside of the frame.
|_current|Slot| The slot of the asset item inside of the frame.
An asset frame slot is a component that takes any Asset Type as an attach component type argument, and allows for snapping assets to a frame. The asset in the frame can be used as a source to drive a list of asset fields which is defined in Targets.
Optionally it calls a sync delegate that takes an argument of the chosen asset type for this component.