Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Resolved Enumerators

Discussion in 'Visual Scripting' started by SPNK78, May 17, 2021.

  1. SPNK78

    SPNK78

    Joined:
    Mar 8, 2021
    Posts:
    13
    Last edited: May 17, 2021
  2. PanthenEye

    PanthenEye

    Joined:
    Oct 14, 2013
    Posts:
    1,106
    No, gotta write it in C#. Bolt will automatically pick up any C# enums present on the project after rebuilding Unit Options.

    For example:
    Code (CSharp):
    1. public enum WeaponType
    2. {
    3.       Sword,
    4.       Spear,
    5.       Bow
    6. }
    That's all you need in an empty C# script to get the enum show up for Switch on Enum and other Enum related nodes in Bolt.
     
    guco likes this.
  3. SPNK78

    SPNK78

    Joined:
    Mar 8, 2021
    Posts:
    13
    thanks