Added create_instance
Allows to create an instance from an `InstancePlaceholder` without removing the placeholder. Deprecates `replace_by_instance`.
This commit is contained in:
parent
91ed678708
commit
5e427190bc
2 changed files with 19 additions and 6 deletions
|
|
@ -60,6 +60,7 @@ public:
|
|||
|
||||
Dictionary get_stored_values(bool p_with_order = false);
|
||||
|
||||
Node *create_instance(bool p_replace = false, const Ref<PackedScene> &p_custom_scene = Ref<PackedScene>());
|
||||
void replace_by_instance(const Ref<PackedScene> &p_custom_scene = Ref<PackedScene>());
|
||||
|
||||
InstancePlaceholder();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue