#Changing variables in another game object using Unity Visual Scripting
1 messages · Page 1 of 1 (latest)
Just use the Get/Set Object Variable node then input the Target GameObject into the GameObject input if its a scriptmachine you can drag and drop the GameObject into the input if not you will need to use other ways like Scene, App or Saved variables or a Find GameObject node
Oh thanks! I will try that!
Yeah notice the "set variable" have a line with a cube that usually says "this".
That means where is this variable located.
You can attach a variable (with a gameObject) to it. Hence changing a variable inside that variable.
Thank you!