Reply To: NC2 – Custom actions are forgotten

NodeCanvas Forums Support NC2 – Custom actions are forgotten Reply To: NC2 – Custom actions are forgotten

#9818
Gavalakis
Keymaster

Hey,

Glad to know its all sorted out. By they way there was another (irelevant) deserialization bug I’ve found which fix is not in the version I’ve send to some of you but it’s of course in the submited version. I’d recomend you wait asset store release before commiting to some work or I can resend it to you of course.

With that said and regarding OnInit,
OnInit and other attribute related initialization is not done in tasks that do not define an AgentType (either with the attribute [AgentType] or with using the generic version of the task eg: : ActionTask ).
This is simply done for performance, but I had this request from other people as well, so I may revert it to call initialization anyway.

Here are the 2 option for now:
1. Define an AgentType if that is indeed needed, which at least in my case, most if not all tasks requiring some initialization were also using an AgentType definition.
2. Open up Task.cs and in method ‘Set’ remove lines #323-324:

Dont worry about doing this since I will also do it in one way or another due to request.

Thanks

Join us on Discord: https://discord.gg/97q2Rjh