Hi.
Need to display progress of some long operation, level (not scene!) loading for example.
Tried to call Camera.main.Render() after updating progress bar, but nothing happens.
Of course, it’s an option to make loading async and call ‘yield return null;’ after each progress change, but it’ll require dramatical code refactoring.
So my question is – maybe there are some other fastest ways to force main camera render while loading ?
P.S. Tried to render main camera to texture and then Graphics.Blit() to backbuffer.
Seems I missed part how to bring backbuffer to screen…
From a scripting perspective Unity is pretty much single-threaded. If you want this sorta async stuff the only facility is to use the Async methods and yield on them as if they were a coroutine.