#Changing variables in another game object using Unity Visual Scripting

1 messages · Page 1 of 1 (latest)

solar elm
#

Using Unity Visual Script, what's one of the easiest or best ways to change the values of a variable on a different Game Object? On C# i have to use class references to the script and get component of the variable of that other script, but I do not know how to do this on Visual Script.

chrome quartz
solar elm
#

Oh thanks! I will try that!

devout laurel
# solar elm 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.

solar elm
#

Thank you!