Categories
Antares Universe

Unity vs Quest- variables

Ok, I just overcame a bit of a sticking point- how to work with variables in Unity. In Quest (without the OO system) you simply create a node for value, vector, or matrix- and it exists like that in the system as a node. Link it to another channelgroup and the channel can be used there too, becoming public. In unity, variables are defined instead as part of the script (not as a node)- Antares Universe uses a system called the ‘Local Variables Manager’

In this manager you can define all sorts of parameters as variables, and they’re present in the script *even when the node graph is empty*. To access them, use the ‘Get Value’ node. The ‘Get Value From’ node can be used to get a variable from another script located elsewhere.

Leave a Reply