docs.unity3d.com
    Show / Hide Table of Contents

    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:

    1. Add the type to the Assembly Options and Type Options through the Unit Options Wizard (Tools > Bolt > Unit Options Wizard).
    2. Update your Unit Options (Tools > Bolt > Update Unit Options).

    You must Update Unit Options whenever the contents of a C# script change.

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023