Skip to content

Visual Scripting

Asset References integrates with Game Creator 2’s normal visual-scripting surfaces. Game Creator 2 labels executable actions as Instructions, so this reference uses Instruction names alongside Conditions and Events.

Game Creator pickers showing Asset References Instructions, Conditions, and Events

Available Instructions include:

  • Preload Streaming Asset
  • Release Streaming Asset
  • Release All Streaming Assets
  • Resolve Game Object Asset Reference
  • Resolve Audio Asset Reference
  • Resolve Sprite Asset Reference
  • Resolve Texture Asset Reference
  • Resolve Material Asset Reference
  • Resolve Animation Asset Reference
  • Resolve Scene Asset Reference
  • Set Local Asset Reference
  • Set Global Asset Reference

Resolve Instructions assign the registered asset to a compatible Game Creator property or variable. The Scene variant assigns a scene build index to a Number property or variable.

Condition Behavior
Asset Reference Exists Checks whether an enabled Reference ID is registered.
Asset Reference Is Loaded Checks whether a Direct asset is cached or a Streamed asset loaded.
Asset Reference Is Enabled Checks whether the enabled entry exists in the runtime cache.
Asset Reference Load Mode Compares the selected entry’s mode with Direct or Streamed.
Event Trigger
On Asset Reference Resolved Get or TryGet resolves successfully.
On Streamed Asset Loaded A Streamed reference finishes loading through TryGet or Preload.
On Asset Reference Released A loaded Streamed reference is released.
On Asset Reference Missing A requested ID cannot be resolved.

Each Event can listen to every reference or filter to one Reference ID.