31-03-2022, 06:44 PM
(This post was last modified: 31-03-2022, 06:52 PM by josemendez.)
(31-03-2022, 06:13 PM)NailEngine Wrote: Hey, thanks for getting back to me so quickly! This has helped a lot, and I have a working demo. Do I have to call blueprint.Generate() within a coroutine? My code is not currently setup for this being an enumerator, so I'm just trying to see if I'll run into any trouble here.
There’s a hint globe in the manual with a direct answer to this :
“Remember that you don't have to rely on StartCoroutine to run a coroutine, or run it asynchronously. You can manually advance it using IEnumerator.MoveNext.“
If you don’t need any control over the generation process and don’t mind a slight pause if it takes long, you can also call GenerateImmediate() instead, which is a synchronous call.