Define Public Variable

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


Really enjoying using Bolt. Just hours in, but learning pretty easily. But, how do I define a public variable for a object?

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

Hi Steve!

All variables are public in Bolt, there is no access modifier. You're right, your approach is good. 

Adding a variable to the Variables component or to the Object tab in the variables window is exactly the same thing.

Let me know if you have any further question.

Really dumb question. They're all public. Sorry.

Not a dumb question at all, it's something that varies by visual scripting tool!

I'll make a note to specify it in the manual. :)