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
Create an export category/group/subgroup with a name that coincides with a base class and then try to instantiate one instance of that class.
Steps to reproduce
Just this:
extends Control
@export_category("Label")
#@export_group("Label")
#@export_subgroup("Label")
@export var text: String
var label: Label
func _ready():
label = Label.new()
label.text = text
When I run the code, I get:
Invalid call. Nonexistent function 'new' in base 'Nil'.
My temporal solution is to do @export_category("Label_") or similar.
Godot version
v4.1.stable.official [9704596]
System information
Godot v4.1.stable - Windows 10.0.22621 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1050 (NVIDIA; 31.0.15.3667) - Intel(R) Core(TM) i5-8300H CPU @ 2.30GHz (8 Threads)
Issue description
Create an export category/group/subgroup with a name that coincides with a base class and then try to instantiate one instance of that class.
Steps to reproduce
Just this:
When I run the code, I get:
My temporal solution is to do
@export_category("Label_")
or similar.Minimal reproduction project
project.zip
The text was updated successfully, but these errors were encountered: