godot – How to add an icon to a script registered as a class?


While learning Godot, the tutorial dictates how to add an icon to a class.

Tutorial

You may add a comma and an optional path to an image to use as an icon. You will then find your new type in the Node or Resource creation dialog.

Steps taken:

  1. Added a 16×16 svg file to the resources named something.svg .
    resource pane

  2. Created a script with a path to that icon.
    Scripts view

  3. Added a node of that kind.

Nodes

I don’t see that icon? Not sure why.