Create an enum in blackboard

Forums 💬 NodeCanvas ⚙️ Support Create an enum in blackboard

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #17674
    pvanallen
    Participant

      I can’t seem to find any info on how to create an enum to use in the blackboard and conditions. How do you do that?

      #17679
      Gavalakis
      Keymaster

        Hello,

        You first have to actually create an enum type within some script of yours, like for example:

        Then, you have to add that new enum type in the Preferred Types Editor window (Tools/ParadoxNotion/NodeCanvas/Preferred Types Editor).

        After you have done this, your enum will show up in the menu and possible to be added as a variable 🙂
        [attachment file=”EnumVariable.png”]

        Let me know if that works for you.
        Thanks.

        #17678
        pvanallen
        Participant

          Yes, that worked. Thanks!

          Maybe put some reference to this on this page:

          nodecanvas.paradoxnotion.com/documentation/?section=the-blackboard

          I made a suggested edit on that page.

          .phil

          #17677
          Gavalakis
          Keymaster

            Thanks for letting me as well as for your documentation suggestion.
            I will see to it and update the docs 🙂

            Thanks!

            #17676
            meatloaf
            Participant

              It would also be great to be able to easily set a dynamicVar to an enum value in SetEnum.

              #17675
              Gavalakis
              Keymaster

                Hey,

                Do you mean for “ValueA”? If so it’s not possible now because “ValueA” assignment needs to be made so that the enum type is determined.
                To work around this, I could add a “Select Type” button to set the type though, instead of the pre-requirement of “ValueA” to be set for that.

                Let me know if that is indeed what you meant.
                Thanks 🙂

              Viewing 6 posts - 1 through 6 (of 6 total)
              • You must be logged in to reply to this topic.