Reply To: Overridden OnValidate() causes MissingException Error

NodeCanvas Forums Support Overridden OnValidate() causes MissingException Error Reply To: Overridden OnValidate() causes MissingException Error

#13075
Gavalakis
Keymaster

Hello and sorry for the late reply (I was ill).

For the spacebar bug, please refer to this forum thread where I have posted the fix file at the end. [LINK].

Regarding the OnValidate issue you are having, it looks like you are calling StartCoroutine in Editor Mode (when duplicating node), while StartCoroutine should only be used and will work correctly in Play Mode. This is also why MonoManager which is responsible for running coroutines is null at that time (since once again coroutines are for play mode).
This shouldn’t be working even on the previous version of NC to be honest 🙂

Why not simply serialize the data you want the node to have into some fields? When duplicating, these will be copied over.

Thanks.

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