How to embed scenes in a C++ module

Godot Version

4.6-stable

Question

When using custom C++ modules (not GDExtensions) how do you embed a scene in the binary? Since the Godot editor is a Godot application itself and it is a single executable I have to imagine that is a way to do that. Or are the scenes constructed by hand via code?

There doesn’t seem to be any documentation on the subject

Scenes are constructed in code.

1 Like