Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

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:
    2,018
    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