Reply To: Creating an Enum with just flowcanvas?

Forums 💬 FlowCanvas ⚙️ Support Creating an Enum with just flowcanvas? Reply To: Creating an Enum with just flowcanvas?

#22643
Gavalakis
Keymaster

    Hello,

    Creating an enum for use in FlowCanvas can be done in code and is not possible through the interface.
    Creating an enum though is very easy. Here is an example:

    MyEnum.cs

    Then to use this in FlowCanvas, you simply need to add it in the Preferred Types Editor:
    – Open up “Tools/ParadoxNotion/FlowCanvas/Preferred Types Editor”.
    – Search “MyEnum” at the top and add it in the list of types with the + button.

    Finally, to branch the flow based on an enum, you can use the Switch Enum node (Flow Controllers/Switchers/Switch Enum) and select your enum you want to switch upon with the relevant “Select Type” button in it’s inspector. In this case, MyEnum.

    [attachment file=”SwitchEnum.png”]

    Let me know if this works for you.
    Thanks 🙂