-
-
Notifications
You must be signed in to change notification settings - Fork 21.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The custom icon for a Script Class is only shown in the node creation dialog before restarting the editor #35896
Comments
I could replicate the issue in Ubuntu 19.10 too, using an |
I also encounter this issue, but if I close the project and reopen it then the icons show properly. I have only tested it with svg icons and I am using linux as well |
I also tried to set a custom icon from an atlast texture and it doesn't work. (Godot v3.5.rc7.official [e71cf7c] on Windows 10) class_name Bush,"res://bush_icon.tres" |
Atlas support is limited to specific things; it's not universal. Use a PNG or SVG instead (recommended size is 32×32 for hiDPI support). |
I just wanted to note that I've also encounter this issue(with both .png and .svg used for |
It seems that the scene dock will only load each node icon one time (when the node is added). https://www.youtube.com/watch?v=BWKHVkSrbQs Godot version: OS/device including version: |
Godot version:
3.2 stable
OS/device including version:
Windows 10 x64 version 1909
Issue description:
The icon defined in a Script Class is displayed in the node creation dialog but not in the scene tree dock. Reopening the project solves the issue.
Also, several errors that seem to be related to image handling occur when using a Script Class, providing or not the optional icon. I guess those could be related, see #35895
Steps to reproduce:
class_name MyClass, "res://icon.png"
The text was updated successfully, but these errors were encountered: