For this, you will need to create a custom State Node class and override the OnNodeGUI method as so to make possible to display custom GUI controls within the node. Possibly the easiest way, would be to create a custom node deriving the ActionState class, like for example:
Doing this will allow you to retain the existing functionality of ActionState, while also possible to add extra GUI Controls like in the above example, a simple button.
If you don’t want to retain the ActionState functionality, then you could also derive from the base class all FSM nodes derive from, that being the FSMState class, and thus possible to create a completely different “type” of state node for able to be added in an FSM.
Let me know if that works for you.
Thank you.
Join us on Discord: https://discord.gg/97q2Rjh
Login
Register
By registering on this website you agree to our Privacy Policy.