Skip to content
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 class icon display exception. #74338

Closed
hdcheng opened this issue Mar 4, 2023 · 1 comment
Closed

Custom class icon display exception. #74338

hdcheng opened this issue Mar 4, 2023 · 1 comment
Labels

Comments

@hdcheng
Copy link

hdcheng commented Mar 4, 2023

Godot version

4.0.stable.official [92bee43]

System information

Windows10,Vulkan,Intel i7-9700K ,NVIDIA GeForce GTX 1660 SUPER

Issue description

I customized a class that inherits from Area2D.
Then i use @ICON("res://assets/svgs/node.svg") to set the icon,but the icon displays abnormally on the inspector page.

my code:

@icon("res://assets/svgs/node.svg")
class_name Door
extends Area2D

@export var door_id : StringName

@export var target : PackedScene

20230304132445

inspector display:

20230304131134

Steps to reproduce

user code:

@icon("res://xxxx/xxx.svg")
class_name CustomClass
extends Area2D

@export var str : StringName

Minimal reproduction project

demo:
Uploading BugDemo.7z…

@YuriSizov
Copy link
Contributor

Duplicate of #68962

@YuriSizov YuriSizov marked this as a duplicate of #68962 Mar 4, 2023
@YuriSizov YuriSizov closed this as not planned Won't fix, can't repro, duplicate, stale Mar 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants