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.
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):