godotengine / godotengine/godot-docs

Exception for node not being saved in scene

Open
#7,668 6 comments 0 reactions 0 assignees View on GitHub
area:manual enhancement
Dominant language
reStructuredText
Stars
5.7k
Forks
3.8k
Avg merge
1d 20h
Merged PRs (30d)
25

Description

**Your Godot version: 4.1**

**Issue description:**
> If you wish the node or scene to be visible in the scene tree dock and persisted to disk when saving the scene, you need to set the child node's [owner](https://docs.godotengine.org/en/latest/classes/class_node.html#class-node-property-owner) property to the currently edited scene root.

This does **not** work if i set the parent to a node inside an instantiated scene and the owner to the edited scene root.
It is only saved in this case if editable children is chosen.

```
root (owner)
|- instantiatedScene
| |- innerNode (parent)
| | |- myNewNode
```

**URL to the documentation page (if already existing):**
https://docs.godotengine.org/en/latest/tutorials/plugins/running_code_in_the_editor.html#instancing-scenes

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.