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.
<!--T:2-->
<!--T:2-->
== Fields ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|FrameSize|Float|
|FrameSize|Float|how thick the frame should be.
|FrameAnimSpeed|Float|
|FrameAnimSpeed|Float|how fast the frame should fit to the asset's bounding box in seconds
|SnapAnimTime|Float|
|SnapAnimTime|Float| How long the animation should be for the asset going into the frame when snapped in seconds.
|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|
|_current|Slot| The slot of the asset item inside of the frame.
|_currentRatio|Float2|
|_currentRatio|Float2| The ratio of the asset's bounding box held in the frame
|_frameSize|IField`1|TypeString7=IField<float2>|
|_frameSize|IField`1|TypeString7=IField<float2>| The field to drive with what the size of the frame should be for the held asset's bounding box.
|_collider|BoxCollider|
|_collider|BoxCollider| The collider to drive the values of the size of the held asset's bounding box.
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 for reading later. Optionally it calls a sync delegate that takes an argument of the chosen asset type for this component.