Variable inspector

Taken from https://hutonggames.fogbugz.com/default.asp?W50

The Variable Manager lets you add, delete, and edit the variables used by an FSM.

    1. Variable Name: Descriptive name for the variable.

    2. Usage Count: The number of times the variable is used in the FSM.

    3. Variable Type: See FSM Variables.

    4. Settings Menu: See below.

    5. Delete: Delete a variable.

    6. Variable Editor: Add or Edit Variables.

Settings Menu

    • Debug Variable Values: Show variable values. Great for runtime debugging.

    • Delete Unused Variables: Delete any variables that are not used by this FSM.

    • Global Variables: Open the Global Variables Window.

    • Online Help: A link to this document.

Adding a New Variable

    • New Variable: Enter the name for the new variable.

    • Variable Type: Set the type for the new variable.

    • The new variable is auto-selected so you can edit it further. See below.

Editing a Variable

    • Select the variable in the table.

    • The panel at the bottom changes to Edit Variable.

    • Edit the variable's name and default value.

Finding Variables in Actions

You can also right click on the variable name to select states/actions that use the variable.