I’d really appreciate some guidance on how to create an enum with flowcanvas.
I created and used them frequently for more visual flow control in states in Unreal Engine 4, however there you just created enums via the interface, and from what I’ve searched it looks like enums are more commonly created in script. Would you need to set something up in the onawake event?
(I’ve tried adding enum related types to the editor but not sure of the right process to create them as this is something outside of my experience).
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:
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.