Load scene/prefab when running a test through the test runner (201318)

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

Hello @Mouton , by 'build' I mean the performance of the builded package. Moreover, I noticed a loss of performance also in other games inside my Oculus Go. So, from here my suspicion... Btw, Thanks for your advice!

1 Answer

1

I have found this way to do it: Unity - Scripting API: Resources.Load . I have seen some guys using it.
But I don’t know if it is the recommended way for loading assets for tests.

Whenever the memory on the device gets low, there are multiple mechanism that will try to release some memory to free some memory for the applications running on the system. Of these mechanism, the first one is the C# Garbage collector which will release memory when a threshold has been reached, this mechanism is run from your application. The second mechanism is the system virtual/extended memory/SWAP which will write exceeding memory to file once it reaches almost the maximum capacity of the device. If there is no virtual memory, the system will randomly kill processes. Beware the leaks !