MikeSchulze / gdUnit4Net

A Godot C# Unit Test Framework.
MIT License
61 stars 5 forks source link

GD-110: Allow initialization methods to be called before a scene is added to the Scene Tree #110

Closed taylor-nightingale closed 5 months ago

taylor-nightingale commented 5 months ago

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 PackedScene or a resource path.

public static ISceneRunner Load(PackedScene scene, bool autofree = false, bool verbose = false)

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.