Can I use the TaskIcon decorator to assign icons to custom tasks?

OregonJunco

New member
As I implement more and more custom tasks, I'm finding cases where I'd like to use a custom icon rather than the default "Play Triangle" that custom tasks seem to have. I've noticed that built-in tasks will use the TaskIcon C# attribute to the effect of [TaskIcon("{SkinColor}SelectorIcon.png")], but I haven't had any luck passing in paths to my own icon assets.

At any rate, is there a way to use the TaskIcon attribute for custom BT nodes, or does it only work for built-in ones?
 

Attachments

  • 2020-08-27_14h01_14.png
    2020-08-27_14h01_14.png
    5.7 KB · Views: 2
Top