-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Custom resources don't use icon for file in filesystem #32706
Comments
Can anyone still reproduce this bug in Godot 3.2.3 or any later release? If yes, please ensure that an up-to-date Minimal Reproduction Project (MRP) is included in this report (a MRP is a zipped Godot project with the minimal elements necessary to reliably trigger the bug). You can upload ZIP files in an issue comment with a drag and drop. |
I am seeing this in 3.2.3. I will try to make a minimal reproduction tomorrow. |
Here is a reproduction project: my_resource has the icon.png in the Create New Resource dialog, but not in the FileSystem panel. |
Would love to see this one implemented! I'm offering a $100 bounty for anyone that can fix/implement this since it is much needed for Dialogic 2.0 |
same issue happens on Godot 4.0 beta4 |
@MikeSchulze As far as I know this was never fixed, so it is still a thing. |
Thats bad, it would be nice to have this consistent. |
I will try making a new PR with one of the strategies from my original PR, where I attached icon gathering to preview generation. This'll mean icons might not update immediately (requiring an editor restart and maybe even a cache clear), but it'll still be performant and not touch core code. |
can confirm on 4.0rc2 |
Thanks for your reports, but there is no need to confirm it. It's a missing feature that hasn't been implemented yet. |
@z4gon Your resource doesn't have |
@KoBeWi oooh, ok so two things:
So, knowing this, I think I would expect custom resources to have the cube icon by default? |
@KoBeWi I set an @icon("res://textures/icons/icon_sword.svg")
class_name MyResource
extends Resource
@export var my_value: int = 0 Noticed that this seems to only work if the If you have a |
I checked that, if a Resource has custom icon, the icon will show in FileSystem, but not in the inspector. Iconless resources use generic file icon, because we don't have custom icon for Resource (the cube is used for Object).
That's another bug. You can open a new issue.
Also another bug. |
I re-checked this, and custom icons for resources show up in the Inspector, but you need to close and re-open the editor for them to show up. I reported the bug here: #92919
Would it be cool to have a generic icon for iconless Resources?
Created bug report here: #92921
I re-checked this in an empty project and couldn't reproduce anymore, I can export a PackedScene and it works fine. |
The icons were fixed only in 4.3. |
I was able to repro, I made a bug report for it here: #92942 |
Godot version:
3.2 alpha-1 (custom build)
OS/device including version:
ArcoLinux
Issue description:
Practically all of Godot's resource types use a special icon to help the user determine what sort of file they're dealing with, assuming the file extension isn't enough (and a lot of resources use .tres/.res anyway.) However, custom resources, though an icon can be supplied for them via
class_name
, do not use that icon in the filesystem, despite it working most everywhere else it would be used.Works in the inspector
And in the Create New Resource dialogue
And when creating a new resource in a property
But, sadly, just a generic file icon used here, the same icon used for all other custom resources.
Ideally the user would be able to identify the resource, wherever it may be, by the icon, much like they do most other resources; this inconsistency breaks that reliance, and makes it considerably more difficult to determine at a glance what kind of file you're dealing with.
The text was updated successfully, but these errors were encountered: