following is my unitytest code:
LoadScene("Scene/Level-2");
yield return new WaitUntil(() => { return GameObject.FindObjectOfType<Arrow>(); });
var arrow = GameObject.FindObjectOfType<Arrow>();
I load a scene and WaitUntil some object is loaded
I hope find a way to omit yield return new WaitUntil
, so is there way to wait all MonoBehaviour#Start finish and then run code?