I couldn't get icons to working using this:
get_editor_theme_icon(SNAME("Pin"));It shows as a broken icon, I think I'm missing an #include but I don't know what header file to include. Even where it does work, VSCode shows a red underline under the function name get_editor_theme_icon saying it's undefined.
I did get it working using the editor singleton though: