Skip to content

Local List Variables

Local List Variables are variables identified by their numberic index value and can only be accessed from the scene they are part of.

Creating a Local List Variable

To create a Local List Variable, right click on the Hierarchy Panel_ and select Create → Game Creator → Variables → List Variables. A new game object with the component will appear in the scene and hierarchy. Alternatively, you can also add the Local List Variables component to any existing game object.

Local List Variables

Conflicting ID

Note that two Local Variables can't have the same unique ID. Otherwise they'll override each other's values. To generate a new unique ID, expand the ID field and click the "Regenerate" button.

Save & Load

Vales can be saved between play sessions to later be restored when loading a game. Disabling the save option will make all variables keep the initial value as their starting value, even after loading a previously saved game.