09-04-2021, 11:39 AM
(This post was last modified: 09-04-2021, 11:44 AM by josemendez.)
Code:
blueprint.Generate();
This is a coroutine (as evidenced by its IEnumerator return type). Like all coroutines, you need to use StartCoroutine() and wait for it to finish. Calling it directly like in your code does nothing. From the code samples found in the manual page I linked to in the previous message:
Code:
yield return StartCoroutine(blueprint.Generate());
Also, see:
https://docs.unity3d.com/Manual/Coroutines.html
cheers,