diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-02-29 13:53:34 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-02-29 13:53:34 +0100 |
commit | 1cc9190c70ac1a1b0e460353f291c1c661fafc9e (patch) | |
tree | 493cbc68cc45172d20cd069434dff9595281bf41 /core/string/node_path.h | |
parent | 05b44f3ef285d518da61c0f3a307c43c41b5ec8e (diff) | |
parent | cd221c1816fe1ffa9c0e730667ade2940dd14632 (diff) | |
download | redot-engine-1cc9190c70ac1a1b0e460353f291c1c661fafc9e.tar.gz |
Merge pull request #81822 from nlupugla/nodepath-slice
Add `NodePath::slice` method
Diffstat (limited to 'core/string/node_path.h')
-rw-r--r-- | core/string/node_path.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/string/node_path.h b/core/string/node_path.h index 876d69924e..56799839d7 100644 --- a/core/string/node_path.h +++ b/core/string/node_path.h @@ -57,10 +57,12 @@ public: StringName get_name(int p_idx) const; int get_subname_count() const; StringName get_subname(int p_idx) const; + int get_total_name_count() const; Vector<StringName> get_names() const; Vector<StringName> get_subnames() const; StringName get_concatenated_names() const; StringName get_concatenated_subnames() const; + NodePath slice(int p_begin, int p_end = INT_MAX) const; NodePath rel_path_to(const NodePath &p_np) const; NodePath get_as_property_path() const; |