ProtoFlux:Attach Sprite

From Resonite Wiki
Revision as of 19:28, 3 June 2024 by Yosh (talk | contribs) (style)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Attach Sprite
*
Next
URL
AttachedProvider
Target
GetExisting
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