Custom Types
Note |
---|
To use Bolt, which is Unity's visual scripting solution, download it from the Unity Asset Store. |
Bolt supports every class and struct type. By default, however, only the most common are included in the fuzzy finder, along with all types derived from Unity objects like components, Mono behaviours and scriptable objects.
If you need to use a non-Unity type in your graphs, you can add it from Tools > Bolt > Unit Options Wizard....
For example, if you wanted to use low-level graphics API calls, you could add the Unity Engine GL class, then hit Generate.
If you want to use a custom type from a custom assembly (like a third-party plugin), you need to add it first in the Assembly Options right before.
To add a custom type that references a custom C# script:
- Add the type to the Assembly Options and Type Options through the Unit Options Wizard (Tools > Bolt > Unit Options Wizard).
- Update your Unit Options (Tools > Bolt > Update Unit Options).
You must Update Unit Options whenever the contents of a C# script change.