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
1
2
3
4
5
6
7
publicenumMyEnum{
One,
Two,
Three
}
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.