You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when attaching a script to a node, the displayed icon is stupid (for lack of a better way to put it):
It chooses an icon matching the word after extends regardless of its validity as a type... (it picks it from the editor/icons directory it seems)
In this demo, the node is a Node2D:
simplescreenrecorder-2023-09-03_17.55.26.webm
as you can see extending the script with any class will make the node it's attached to use the class icon, without erroring about incompatibility (unless the word you put isn't actually a valid type).
An error happens only at runtime...
Steps to reproduce
attach a script to a node
make the script extend any class you'd like, or put a random icon name
reload the scene
notice the icon usage
Minimal reproduction project
any
The text was updated successfully, but these errors were encountered:
Godot version
4.1.1
System information
linux
Issue description
Related to #61126
when attaching a script to a node, the displayed icon is stupid (for lack of a better way to put it):
It chooses an icon matching the word after
extends
regardless of its validity as a type... (it picks it from theeditor/icons
directory it seems)In this demo, the node is a
Node2D
:simplescreenrecorder-2023-09-03_17.55.26.webm
as you can see extending the script with any class will make the node it's attached to use the class icon, without erroring about incompatibility (unless the word you put isn't actually a valid type).
An error happens only at runtime...
Steps to reproduce
Minimal reproduction project
any
The text was updated successfully, but these errors were encountered: