I'm trying to learn to load scenes from assets to better follow data-driven architecture. Its hard to find many examples but I believe this should work.
pub fn spawn_dynamic_main_menu(mut commands: Commands, asset_server: Res<AssetServer>) {
let loaded_scene: Handle<DynamicScene> = asset_server.load("ui/main_menu.ron");
let dynamic_scene = DynamicSceneRoot(loaded_scene);
commands.spawn(dynamic_scene);
}
However no matter what I do nothing shows up. It doesn't even error out. The string path can be complete nonsense and it still runs perfectly fine. I know the function is running, so why isn't the asset server throwing an error?