I am trying to add some info to my HUD, this info comes from an object variable component of my game object.
In this tutorial (http://orkframework.com/tutorial/howto/text-codes/
), it mentions we can use a game variable in text codes like below;
The current string value of the game variable with key X.
But I am not sure where this variable getting from. Based on above description, I feel like it uses an unique key within a scene to locate my variable?
To be more specific, let's say I have below two game objects in my scene, how can I get Value1 and Value2, respectively? They shared the same variable key but in different objects.
- Object Variable Component with object id "OB1"
-- Key1 - Value1
- Object Variable Component with object id "OB2"
-- Key1 - Value2