• 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

Using State Machine Controllers

The API for using a StateMachineController is pretty much identical to its counter part. You still have access to an UpdateState method but this time, because it controls a list of StateMachineBases, your StateMachineController will call StateMachine.UpdateState (true) for the StateMachines you are making "active" and pass false for the others.

NOTE: StateMachineControllers also require an instance of a StateMachineReset in the scene to help with initialisation in each of your scenes. Though, even if you're using both StateMachines and StateMachineControllers, just one instance of a reset object will be enough.

  • Improve this Doc
Back to top Generated by DocFX