How can I do a comparison to Enum types?

Forums 💬 FlowCanvas ⚙️ Support How can I do a comparison to Enum types?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #21655
    guaiwulieren
    Participant

      Hi all, I am using an Enum type to represent my hero’s state. I want to compare this type in FlowCanvas, but I can’t find the way how to do this in FlowCanvas.

      any help?
      thank you.

      #21658
      Gavalakis
      Keymaster

        Hello,

        You need to use the “Switch Enum” node. Before you are able to actually use your enum type in the the “Switch Enum” node though, you first need to add your enum type to the Preferred Types Editor, so that it becomes available in the reflection menus.

        1. Open up Preferred Types Editor Window (Tools/ParadoxNotion/FlowCanvas/Preferred Types Editor).
        2. Click “Add New Type” to search and add your enum.
        3. Back in FlowCanvas graph, add the “Switch Enum” node and in it’s inspector hit the “Select Enum Type” and select your enum.

        You will thus end up with something like this (but for your enum type instead):
        [attachment file=”SwitchEnum.png”]

        Let me know if that works for you.
        Thanks.

        #21657
        guaiwulieren
        Participant

          it works for me. thank you.

          #21656
          Gavalakis
          Keymaster

            Great 🙂
            Thank you for letting me know.

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