0
Answered

FlowStateMachine for entire scene?

martin.matulik 3 months ago updated by Lazlo Bonin (Lead Developer) 3 months ago 3

Hello,

I am starting visual scripting with BOLT (1.4.4 ; Commercial license). I would like to have "global" Flow State Machine for entire scene in Unity, so I created a null object, added component "FlowGraph" and created 4 states (so far transitioning by time delays). 

Within those states, I would like to control attributes of multiple objects (e.g. switching visibility of different light objects). 

The question is: How can I access different objects (and their parameters) within FlowGraph window? (e.g. for "On enter state" switching "DirectionalLight1" visibility to "false"). 

Looking forward to Your solutions,
Martin

Bolt Version:
1.4.4
Unity Version:
2019.1.8f1
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):
+1
Create a scene variable that holds a game object reference.
+1

Thank You, TowerCrow, it works :)