How can I do a comparison to Enum types?

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2201
    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.

    #2202
    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):
    SwitchEnum

    Let me know if that works for you.
    Thanks.

    Join us on Discord: https://discord.gg/97q2Rjh

    Attachments:
    You must be logged in to view attached files.
    #2205
    guaiwulieren
    Participant

    it works for me. thank you.

    #2211
    Gavalakis
    Keymaster

    Great 🙂
    Thank you for letting me know.

    Join us on Discord: https://discord.gg/97q2Rjh

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