Reply To: [REQUEST] Custom warning/error icons in custom nodes (from other assemblies)

NodeCanvas Forums Support [REQUEST] Custom warning/error icons in custom nodes (from other assemblies) Reply To: [REQUEST] Custom warning/error icons in custom nodes (from other assemblies)

#15421
Gavalakis
Keymaster

Hello again,

Right now there is only the [RequiredField] attribute which checks for whether or not a field is null (or string.Empty). With that said however, I went ahead and added your request by adding a new virtual method named “OnErrorCheck” that you can override to achieve what you are after.

Please open up Task.cs and add the following in GetWarningOrError method:

Then of course, also add this somewhere in the same class:

The above changes will of course exist in the next version update.
Please let me know if that works for you.
Thank you 🙂

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