Visual Scripting Setup
Visual scripting in Unity empowers creators to develop gameplay mechanics or interaction logic with a visual, graph-based system, instead of writing traditional lines of code.

About Visual Scripting

Unity’s Visual Scripting allows you to create the logic for your Unity projects without writing actual code. Whereas traditional scripting in Unity is done in the C# programming language, Visual Scripting is a visual “language” that lets you diagram your instructions. For example, these two scripts do the same thing — they are just written in two different languages.

Why make scripting visual?

Visual Scripting brings the power of Unity scripting to non-coders and future coders. For the visually-oriented, it makes it easier to learn and understand scripting concepts, and even watch your scripts run in real time. It empowers non-coders to extend or modify C# scripts, and it gives coders a way to better collaborate with artists and designers. Coders can also use Visual Scripting to create extensions, templates, and tools for other Unity users so that everyone can customize their Unity projects, whether or not they know C#.

What is the Unity Scripting API?

Visual Scripting also provides non-coders with access to the entire Unity Scripting API — the complete set of definitions of the classes, events, methods (behaviors), and properties (settings) you can manipulate in your Unity scripts. For example, the API includes the MonoBehaviours class, which has the Start and Update methods available to every GameObject. Although the API is big, you can do a lot in your scripts with just a few basics.In Visual Scripting, you can look up any class, event, method, and property in the API through a series of menus, making it easier to find and discover what you need. The best way to learn more of the API is to look things up (in the Unity Scripting API reference and even within Visual Scripting) and experiment as you create your own scripts.

Interested in programming?

If programming in Unity is of particular interest to you, please try the Junior Programming Pathway if you haven’t already. You’ll get a solid foundation in programming in Unity — for which Visual Scripting can be another tool in your toolbox.

Install

Bolt

AR-MOD visual scripting is base on Unity Bolt. So you need to install the bolt plugin in Asset store. Access the Asset Store website and add the blot to our assets.
Asset Store
Then back to the Unity Editor and open the Packages Manager by Window->PackagesManager. Click the drop down button to select the My Assets , find the Bolt plugin to install and import to our project.
Maybe you need to log in to your Unity account.
Bolt
Congratulations, here you have installed Bolt!

AR-MOD Visual Scripting Extension

If you have already installed the AR-MOD development kit, you can skip this step.
Reading the AR-MOD developer kit setup article to install the AR-MOD Vislau Scripting extension
AR-MOD Visual Scripting Extension

Initialization

At the first time, you will see the bolt initialization window as show below. You can configure it according to your preferences.
Initialization
After the bolt initialization click the Tools->Bolt->Init AR-MOD to initialization AR-MOD visual scripting. As show below:
Init AR-MOD Visual Scripting
Well done. Here you have finished the visual scripting setup and initialization, Now you can enjoy creating to your heart's content.

Testing

In Unity Editor Project Panel Right-Click to create a new file of Bolt graph by Create > Bolt > Flow Graph. Selete the Graph and Double Click or click the Edit Graph in Inspector , you will see the graph window is appears.
Now we need to add new unit to our graph. Right-Click in the graph view you will see the pop-up menu. If you see AR-MOID in the menu, it proves that our configuration has been successful. Then you can use your imagination and creativity to build an unparalleled AR experience
Last modified 1mo ago