Attach Sprite (LogiX node)

From Neos Wiki
Jump to navigation Jump to search
Other languages:
English • ‎日本語
Attach Sprite
'Attach Sprite' LogiX node
Inputs
  Impulse Attach
  Uri URL
  Slot Target
  Bool GetExisting
Outputs
  Impulse OnAttached
  SpriteProvider AttachedProvider

The Attach Sprite node creates a StaticTexture2D component on the Target slot and fills the component's URL field with the input URL. A SpriteProvider component is also created whose Texture field is filled with a reference to the newly created StaticTexture2D component.

Usage

If the GetExisting input is True this will not produce components which are exact duplicates of existing ones currently under the slot (i.e. the existing component's URL field is identical to the node's URL input). The input URL should be for a 2D image asset.


The newly attached SpriteProvider component is available from the AttachedProvider output for the duration of the impulse chain started by OnAttached.

Examples

Node Menu

Assets
Back Attach Audio Clip Attach Mesh Attach Sprite Attach Texture2D Bake Meshes Find Animation Track Index
Format Locale String Get Asset`1 Get Texture 2D Pixel Get Texture 3D Pixel Locale Message Count Sample Animation Track`1 Sample Texture2D UV
Sample Texture3D UVW Texture 2D Format Texture 3D Format