Loading...

Logo
DocumentationBehaviorsCustomLoad Image
Custom

Load Image

Last updated November 27, 2020

Description

Load an image from a source to be used as in different graphic behaviors.

Properties

Triggers on Completion

Load Type

Select a source to load the image from: choices are 'URL', 'Assets', 'Camera', 'Photos', 'Files', 'Screenshot', 'Capture Object' and 'Render Texture'.

URL (URL only)

Downloads and loads an image from a URL.

Asset Selection Type (Assets only)

Predefined: Select an asset from the asset library.

Dynamic: A path to an asset in the asset library. e.g UI/Lives Indicator/Heart.

Dynamic Frame: Select the path to an animation, a cycle name and the frame you wish to load.

Object A (Capture Object only)

Select an object to capture an image of the object. If an array of objects is used, it will capture the smallest area where all the objects can be visible. NOTE: make sure the objects are not too far from each other otherwise the captured image can be quite large!

Outputs

Image

Outputs the image that was loaded. You can plug this into the Set Graphic behavior to set an object's sprite to this image.

Error

Outputs any errors that occur when loading an image.

Examples

  • You can download an image from your server that represents your character avatar to dynamically load assets that are not in your assets library by using the URL load type.
  • You can share an image by selecting an array of objects for Capture Object, where the array contains a character and their hat.

HTTP-Request Behavior

Render Texture Behavior

Set Graphic Behavior