Variables are identified by a unique GUID in blackboards. You can still get a variable by itβs name but you have to make sure that the name is unique.
Return a blackboard variable of type T by its name.
Make sure that variable names are unique.
Example - Get variable by its name
usingFlowReactor;usingFlowReactor.BlackboardSystem;// reference to blackboardpublicBlackBoard variables;// get variable value of type int with the name healthvar _healthVariable =variables.GetVariableByName<FRInt>("health");Debug.Log(_healthVariable.Value);
Example - Modify variable value
usingFlowReactor;usingFlowReactor.BlackboardSystem;// reference to blackboardpublicBlackBoard variables;// First we get the variable reference from the blackboard of type FRIntvar _healthVariable =variables.GetVariableByName<FRInt>("health");// Then we can simply modify the variable_healthVariable.Value--;Debug.Log(_healthVariable.Value);