Blackboard
Namespace
using FlowReactor.BlackboardSystem;GetVariableByName
public T GetVariableByName<T> (string name) where T : FRVariableReturn a blackboard variable of type T by its name. Make sure that variable names are unique.
Example - Get variable by its name
using FlowReactor;
using FlowReactor.BlackboardSystem;
// reference to blackboard
public BlackBoard variables;
// get variable value of type int with the name health
var _healthVariable = variables.GetVariableByName<FRInt>("health");
Debug.Log(_healthVariable.Value);Example - Modify variable value
SaveToFile
Saves the serialized blackboard to a file.
Parameters
Description
string _fileName
The file name which should be used for saving
SavePath _savePath
The save path, declared by the SavePath enum.
SaveFormat _format
The save format, declared by the SaveFormat enum.
LoadFromFile
Loads a serialized blackboard from a file.
Last updated