Search Unity

Question Can't load enum type which is defined in asmdef... WHY?

Discussion in 'Visual Scripting' started by Bric, Mar 26, 2023.

  1. Bric

    Bric

    Joined:
    Oct 29, 2012
    Posts:
    16
    When I define an enum in an asmdef called 'Lobby', the enum type cannot be selected in the fuzz window or in the visual scripting 'Type Options'. Does this mean that it only supports 'Assembly-csharp.dll'?
     
  2. jeromeatunity

    jeromeatunity

    Joined:
    Jul 1, 2018
    Posts:
    63
    Hello.

    First add your namespace (as defined in the asmdef asset) to Project Settings > Visual Scripting > Node Library.



    Then click on Generate / Regenerate Nodes. After that, your enum should be accessible from any Script Graph.



    hth.
     
    Selmar likes this.