unity-scene-reference
unity-scene-reference copied to clipboard
SceneReference Constructor
It'd be nice for test automation to have a constructor that took a path to a scene. Something like this.
void TestSceneThing()
{
SceneReference scene = new SceneReference("/Assets/Scenes/TestScenes/test_scene_1.unity");
bool weDidStuffToTheScene = thing.DoStuffTo(scene);
Assert.That(weDidStuffToTheScene, Is.True);
}
The SceneReference class is designed to be constructed only in the context of the inspector, therefore I see no benefit of having a meaningful constructor to be used either in runtime or in tests.
Can you elaborate more on what you are trying to test here?