FlowCanvas Forums › Support › Accessing GlobalBlackboard Variables from C# script › Reply To: Accessing GlobalBlackboard Variables from C# script
Hey,
You can get a Global Blackboard’s Variable like this for example:
1 2 3 4 5 6 | void Start(){ var x = GlobalBlackboard.Find("Global").GetVariableValue<float>("myFloat"); Debug.Log(x); } |
In the ‘GlobalBlackboard.Find’ you have to pass the identifier name of the Global Blackboard (as set in its inspector). Then you can use the ‘GetVariableValue
Let me know if that is what you were after. Thanks.