Create Attach Sprite |
style |
||
Line 16: | Line 16: | ||
|}} | |}} | ||
Attach Sprite | The '''Attach Sprite''' node allows one to attach a provided [[Type:Uri|Uri]] as a new [[Component:SpriteProvider|SpriteProvider]] component and return the SpriteProvider's raw [[Type:IAsset`1|IAsset`1]] itself. | ||
== Inputs == | == Inputs == | ||
Line 24: | Line 24: | ||
Call to attach the asset. | Call to attach the asset. | ||
=== URL ([[Type:Uri| | === URL ([[Type:Uri|Uri]]) === | ||
The URI of the asset you want to attach. Can be a resdb or a local or a website hosted asset. | The URI of the asset you want to attach. Can be a resdb or a local or a website hosted asset. | ||
Line 34: | Line 34: | ||
=== GetExisting ([[Type:Bool|bool]]) === | === GetExisting ([[Type:Bool|bool]]) === | ||
Get an existing asset on Target ([[Slot]]) of the same URL ([[Type:Uri| | Get an existing asset on <code>Target</code> ([[Slot]]) of the same URL ([[Type:Uri|Uri]]) or attach a new one. | ||
== Outputs == | == Outputs == | ||
Line 40: | Line 40: | ||
=== Next ([[Impulses|Continuation]]) === | === Next ([[Impulses|Continuation]]) === | ||
Fires after * ([[Impulses|Call]]) is called and the asset was successfully attached. | Fires after <code>*</code> ([[Impulses|Call]]) is called and the asset was successfully attached. | ||
=== AttachedProvider ([[Type:IAsset`1|IAsset`1]]<Sprite>) === | === AttachedProvider ([[Type:IAsset`1|IAsset`1]]<Sprite>) === | ||
The attached provider or an existing one on Target ([[Slot]]) if GetExisting ([[Type:Bool|bool]]) is true. | The attached provider or an existing one on <code>Target</code> ([[Slot]]) if <code>GetExisting</code> ([[Type:Bool|bool]]) is true. | ||
== Examples == | == Examples == |
Latest revision as of 19:28, 3 June 2024
Attach Sprite
Characters
The Attach Sprite node allows one to attach a provided Uri as a new SpriteProvider component and return the SpriteProvider's raw IAsset`1 itself.
Inputs
* (Call)
Call to attach the asset.
URL (Uri)
The URI of the asset you want to attach. Can be a resdb or a local or a website hosted asset.
Target (Slot)
The slot to attach the asset to.
GetExisting (bool)
Get an existing asset on Target
(Slot) of the same URL (Uri) or attach a new one.
Outputs
Next (Continuation)
Fires after *
(Call) is called and the asset was successfully attached.
AttachedProvider (IAsset`1<Sprite>)
The attached provider or an existing one on Target
(Slot) if GetExisting
(bool) is true.
Examples
-
An example of Attach Sprite being used to keep an asset on an item that someone made in session.