• Manual
  • Scripting API
Show / Hide Table of Contents
  • Introduction
  • How To Install
  • Runtime Objects
    • Creating Runtime Objects
    • Runtime Object Properties
  • Events
    • Event Objects
    • Event Listeners
    • Hello World Example
  • Runtime Items
    • Value Items
    • Reference Items
  • Runtime Lists
    • Value Lists
    • Reference Lists
  • Populators
  • State Machines
    • Using State Machines
    • State Machine Controllers
    • Using State Machine Controllers
  • Versioning Your Apps
  • Modular Scene Loading
  • Attributes
  • License
  • Advanced Topics
    • Settings
    • Why The Resources Folder?
    • Strings as Value Types?
    • Extending The Framework

Value Lists

ValueLists are a kind of RuntimeList that are designed to handle value types like floats, Vector3s and bools. Below is an example of an IntList which can be created via "Create > Runtime Objects > Value > List > Ints". All ValueLists have an items property which actually contains the values in question.

Figure1

In addion to the items it hols, there are some editor propeties that are immune to the global reset effect.

  1. The Custom Default Values is an optional property that can be used to determine what the internal list should reset to on application start/on entering play mode.
  2. The Use Custom Default is an optional toggle that will determine whether or not the internal list will reset to zero or reset to your custom default value.

Custom default values are a great way to test an unfinished interaction between your scripts. Usually when data is shared, one script will read from some file or database and store the results in a variable while the other script was written to read that variable and do stuff with it. With ValueLists and their custom default values, you don't need the database reading code immediately, you can just simulate that the database was already read from because your other script is only aware of your ValueList and the values provided to it. The values being some custom default values or the real values doesn't matter anymore.

Note: Scriptable Framework can also let you create a ValueList of strings. If you're wondering how this was made possible, see our advanced topics.

  • Improve this Doc
Back to top Generated by DocFX