Issue with ClassDB instantiation of custom classes in Godot 4.2.2 #9626
Closed
lazy-pigeon
started this conversation in
Engine Core
Replies: 1 comment 1 reply
-
Classes created from scripts are not in the ClassDB. As, I presume you know, if you know the name of the class while writing the code, you can use it to create instances. However, if you only have the name in runtime, what you need is to get a reference to the script from that name. You can do so by searching for it in |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've encountered an issue while using Godot version 4.2.2 that has been troubling me:
Why is it that ClassDB cannot instantiate custom classes? I want to instantiate classes by using their StringName, but it seems currently unattainable.
I'm curious if there are alternative methods to achieve this goal or if there are plans to add support for this functionality in future releases?
Beta Was this translation helpful? Give feedback.
All reactions