Change Node set_name to use StringName

This commit is contained in:
Aaron Franke
2023-04-28 15:59:00 -05:00
parent 730adf4801
commit a404b668a1
6 changed files with 69 additions and 17 deletions

View File

@ -410,6 +410,11 @@ protected:
GDVIRTUAL0RC(RID, _get_focused_accessibility_element)
GDVIRTUAL1RC(String, _get_accessibility_container_name, const Node *)
#ifndef DISABLE_DEPRECATED
void _set_name_bind_compat_76560(const String &p_name);
static void _bind_compatibility_methods();
#endif
public:
enum {
// You can make your own, but don't use the same numbers as other notifications in other nodes.
@ -473,7 +478,7 @@ public:
StringName get_name() const;
String get_description() const;
void set_name(const String &p_name);
void set_name(const StringName &p_name);
InternalMode get_internal_mode() const;