Open samuelfine opened 2 weeks ago
Checking "Scale With Editor Scale" in the import tab and then reimporting it should resize the icon to the correct scale.
@detomon Good catch, this does fix the problem for SVG icons! Does lead me to a few additional questions though:
@icon
s? Looks like all the built-in icons are SVG and I don't see that Scale With Editor Scale
option for importing PNG assets, which leads me to believe the Editor prefers SVG for @icon
. And I wouldn't be against the idea of requiring SVG for custom icons, for the sake of simplicity and ensuring accurate rendering.The documentation doesn't specify a filetype, so at the very least it feels like there's an opportunity for providing clearer user guidance.
Tested versions
v4.3.stable.official [77dcf97d8]
System information
Godot v4.3.stable - macOS 14.6.1 - GLES3 (Compatibility) - Intel(R) UHD Graphics 617 - Intel(R) Core(TM) i5-8210Y CPU @ 1.60GHz (4 Threads)
Issue description
When setting a custom
@icon
on a script, the icon renders smaller than expected in the Scene Tree. The icon preview in the FileSystem renders at the correct size.I'm using a MacBook Air with a high DPI / Retina display:
Screen Width: 1440 pixels Screen Height: 900 pixels DPR (Device Pixel Ratio): 2
Steps to reproduce
@icon
pointed at an asset in the FileSystem (.png and .svg both tested)Minimal reproduction project (MRP)
customiconsizeissue.zip