Generate any Godot 4 .tscn scene file programmatically with a headless SceneTree builder script (C# / .NET or GDScript): build the node hierarchy in code, set the Owner chain, validate, and Pack/save.