Load scene/prefab when running a test through the test runner

I am trying to write tests for my motor controller to make sure it works. However I want to load test stages that are either stored in prefabs or in a scene.

I am totally lost on how to load the scene that has all the prefabs OR somehow load the prefabs

You should be able to load a scene as part of the test using SceneManager.LoadScene Unity - Scripting API: SceneManagement.SceneManager.LoadScene

1 Like