Reply To: Icon customisation

NodeCanvas Forums General Discussion Icon customisation Reply To: Icon customisation

#9320
Gavalakis
Keymaster

Right now, you can customize the icon that a Node has, which is something one don’t really have to create that frequently, but in the next version the node will be possible to “inherit” the icon from the task that is assigned on it.
This of course will not work with tasks in Lists (ActionList, ConditionList)

Actuly, if you want to temporary enable this “inheritance”, you can open up Node.cs and at line #436 under the icon property, un-comment the ” || this is ITaskAssignable “.

Then to add an icon to the Task, use the [Icon(string)] attribute on it, where the string is the name of a Texture2D that has to be located in a Resources folder, preferably in an Editor/Resources folder since that’s all editor stuff 🙂

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