I have a gameObject that has a “variables” component with several variables defined and a scriptMachine component that operates on those variables. I also have a monobehavior on the gameObject that needs to access the variables defines in the “variables” component.
Is there a way to do this?
Thank you.
I ran into this same situation but I found out how to do it.
using Unity.VisualScripting;
Variables.Object(gameObject).Get("variable name");
You can use the Variables.Object(gameObject).Get(“variable name”); in the update method to be constantly checking the value from that variable.
Im a new user, how do you access its value from a script?