Reply To: How to set icon for custom task?

NodeCanvas Forums Support How to set icon for custom task? Reply To: How to set icon for custom task?


Excellent! While creating some other tasks, I ended up making another change to Task.cs . I modified the access for the icon property so I could override it based on values in the children:
public virtual Texture2D icon

For example I have a IsFacingDirection ConditionTask and I override the icon based on the setting:

The icon doesn’t update immediately if the value is changed, but that’s ok. I’m sure you have texture caching done in the background. I just wanted to let you know about this use-case. If possible to make the icon refresh somehow that would be nice, but again it’s not worth a performance hit.

Thank you for your support, Gavalakis. You created an amazing product, and is truly one of the best designed assets I have come across. I will be using this for years to come. I really appreciate it!