Added create_instance

Allows to create an instance from an `InstancePlaceholder` without removing the placeholder.

Deprecates `replace_by_instance`.
This commit is contained in:
eon-s 2018-03-05 22:57:17 -03:00
parent 91ed678708
commit 5e427190bc
2 changed files with 19 additions and 6 deletions

View file

@ -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();