UnityFSMCodeGenerator icon indicating copy to clipboard operation
UnityFSMCodeGenerator copied to clipboard

Better handling of refactoring delegates

Open justonia opened this issue 7 years ago • 0 comments

Right now if you change your interfaces it will break the code in the generated FSM. To then regenerate correctly or have the visual FSM actions detect your new interfaces you need the compilation to succeed. So you have to go comment out the offending lines in the generated code, fix up your visual FSM, and then regenerate.

Ideally there would be a new compilation option: "ignoreDelegates". This option could be used during or before a refactor to spit out generated code that does not call any external interfaces. Allowing you to fix up your code, alter the visual FSM as needed, and then when done generate the real version of the C# FSM.

justonia avatar Mar 01 '18 18:03 justonia