Icon customisation

NodeCanvas Forums General Discussion Icon customisation

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #9318

    I am sure I read somewhere that you can customise the icons used on custom tasks, is there any documentation specifically on setting this up? (i.e attributes to use, if custom icons can be used etc)

    #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

    #9319

    Works perfectly, ended up going with 32×32 sized icons, thanks for your help.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.