diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-06-06 13:30:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-06 13:30:18 +0200 |
commit | 4d2ecde3e22e2503715b0cec612dd8b767dce77a (patch) | |
tree | 07ca2aa8758dbe28071438740d71cda209f1caa6 /core/variant | |
parent | 52952edafcbbc42185db8e5371119c1df9afca83 (diff) | |
parent | b3bbf3db47b2bde688b013cb29f99e745313e2c5 (diff) |
Merge pull request #61746 from bruvzg/gde_hash
Diffstat (limited to 'core/variant')
-rw-r--r-- | core/variant/variant_call.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/variant/variant_call.cpp b/core/variant/variant_call.cpp index a3568a8d6a..6b1868df68 100644 --- a/core/variant/variant_call.cpp +++ b/core/variant/variant_call.cpp @@ -1472,6 +1472,10 @@ static void _register_variant_builtin_methods() { bind_static_method(String, chr, sarray("char"), varray()); bind_static_method(String, humanize_size, sarray("size"), varray()); + /* StringName */ + + bind_method(StringName, hash, sarray(), varray()); + /* Vector2 */ bind_method(Vector2, angle, sarray(), varray()); @@ -1684,6 +1688,7 @@ static void _register_variant_builtin_methods() { bind_method(NodePath, get_name_count, sarray(), varray()); bind_method(NodePath, get_name, sarray("idx"), varray()); bind_method(NodePath, get_subname_count, sarray(), varray()); + bind_method(NodePath, hash, sarray(), varray()); bind_method(NodePath, get_subname, sarray("idx"), varray()); bind_method(NodePath, get_concatenated_subnames, sarray(), varray()); bind_method(NodePath, get_as_property_path, sarray(), varray()); |