Asset ReferencesGame Creator 2 Module

#Game Creator Integration

Asset References integrates with normal Game Creator 2 authoring surfaces so designers can keep using familiar Actions, Conditions, Events, and Properties.

ScreenshotOpen full size
Asset References Game Creator integration overview
Asset References Game Creator integration overview

#Properties

Supported Game Creator property getters include:

  • GameObject
  • AudioClip
  • Material
  • Sprite
  • Texture
  • Texture2D
  • AnimationClip
  • Scene build index

Other Unity asset types can still be registered and resolved through the runtime API or custom scripts.

#Conditions

ConditionUse it to check
Asset Reference ExistsThe selected enabled Reference ID is registered.
Asset Reference Is LoadedA Direct asset is cached or a Streamed asset is loaded.
Asset Reference Is EnabledThe enabled reference is present in the runtime cache.
Asset Reference Load ModeThe selected reference uses Direct or Streamed mode.

#Events

EventFires when
On Asset Reference ResolvedGet or TryGet resolves successfully.
On Streamed Asset LoadedA Streamed reference finishes loading through TryGet or Preload.
On Asset Reference ReleasedA loaded Streamed reference is released.
On Asset Reference MissingA requested ID cannot be resolved.

Each event can listen to any reference or filter to one Reference ID.

#Instructions

Streaming and assignment 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

#Local And Global Variables

Use Asset Reference variables when a Game Creator workflow needs to store which registered reference is active. Variables store IDs and defer actual loading to the AssetReferences facade.