Closed taylor-nightingale closed 3 months ago
Overloaded the ISceneRunner.Load method to accept a Node or a resource path.
It accepts already resource path or the scene instance.
You can solve this already by just override the scene_runner
function by
func scene_runner(scene :Variant, verbose := false) -> GdUnitSceneRunner:
# do your custom init stuff
scene.init();
return auto_free(GdUnitSceneRunnerImpl.new(scene, verbose, true))
Is your feature request related to a problem? Please describe. ISceneRunner.Load automatically adds the loaded Node to the SceneTree, causing _Ready to be called before any initializing functions can be run
Describe the solution you'd like Overloaded the ISceneRunner.Load method to accept a Node or a resource path.
Describe alternatives you've considered ISceneRunner could be changed to have a a Start method and only add the scene once this is called, but this would be a breaking change requiring a major version update.