Merge pull request #36301 from KoBeWi/daddy_node

Add reparent methods to Node
This commit is contained in:
Rémi Verschelde 2023-01-07 13:20:56 +01:00
commit 3579d7a9f7
No known key found for this signature in database
GPG key ID: C3336907360768E1
9 changed files with 50 additions and 0 deletions

View file

@ -317,6 +317,7 @@ public:
bool has_node_and_resource(const NodePath &p_path) const;
Node *get_node_and_resource(const NodePath &p_path, Ref<Resource> &r_res, Vector<StringName> &r_leftover_subpath, bool p_last_is_property = true) const;
virtual void reparent(Node *p_parent, bool p_keep_global_transform = true);
Node *get_parent() const;
Node *find_parent(const String &p_pattern) const;