+1
Answered

is scene variable same as public variable?

Sanket Varia 3 years ago updated by Lazlo Bonin (Lead Developer) 3 years ago 2

If not then which one?

Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):

Answer

+1
Answer

Scene variable is closer to a public static variable or a global in languages that allow that, as it is not tied to an instance.   Object variables are actually all you really need to replicate a public variable, as they are tied to the instance, but accessible from any graph (just set the instance in the Get Object Variable).

GOOD, I'M SATISFIED
Satisfaction mark by Sanket Varia 3 years ago
+1
Answer

Scene variable is closer to a public static variable or a global in languages that allow that, as it is not tied to an instance.   Object variables are actually all you really need to replicate a public variable, as they are tied to the instance, but accessible from any graph (just set the instance in the Get Object Variable).