Objects in Glue which reference files can either represent a part of a file (such as a Sprite in a Scene) or the entire file itself. Using the "entire file" option can make it easier to maintain as no changes are required on the Glue side when objects are added or removed from a file. The "entire file" option is often used in entities, which require files to be added as objects before they will show up in game.

Creating an Entire File Object

The following steps can be used to create an entire file from a .emix (Emitter List) file. It assumes that the Entity already has an .emix file:

  1. Right-click on Objects

  2. Select "Add Object"

  3. Select the "From File" option

  4. Select the .emix file

  5. Click OK

Entire Files and Duplication

Code Results

If you open the generated code file you'll see that the TextObject comes from the EntireScene object:

EntireScene = SceneFile.Clone();
TextObject = EntireScene.Texts.FindByName("TextObject");

Last updated