Reply To: [Bug] Graph OnEnable() fires on Load, causes errors

NodeCanvas Forums Support [Bug] Graph OnEnable() fires on Load, causes errors Reply To: [Bug] Graph OnEnable() fires on Load, causes errors

#15210
Gavalakis
Keymaster

Hey,

Yes, scriptable object OnEnable is called when the object is loaded. This is a known fact and the code is designed around this, thus OnEnable and as a consequence Validate should be called when the graph loads (deserializes) :). The error you posted above however does not really have anything to do with OnEnable as far as I can see, but rather has to do with the OnAfterDeserialize call.

  • Can you please provide the full log stack you are getting?
  • Can you please provide a bit more info on your graph setup? (or even possibly send the reproduction graph/project to “support_AT_paradoxnotion.com”?
  • What NodeCanvas and Unity version are you using?
  • What platform are you targeting?

Thanks!

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