Question by
imM4TT · Jul 14, 2020 at 11:22 PM ·
uifreezecoroutinesthreads
Heavy use of Unity API & UI Thread
Hi.
I need to add many Image in my Canvas. I'm using a loop that creates a gameobject and which adds the Image component every lap, beside that it makes freeze the UI thread for around 10 seconds. I tried to make those heavy computing inside another thread that should have worked but I receive an error message because I'm using Unity API outside the main thread. I also tried to uses coroutines and that works but it's very slow since it's waiting every loop lap to prevent the freeze.
Do you guys have any insights ?
Comment
Your answer
Follow this Question
Related Questions
Best way to run a long algorithm in the background? 1 Answer
Making a growing number 1 Answer
Why Is This Coroutine Freezing my Unity5 editor? 2 Answers
How can I simulate a thread? 1 Answer
Display list as UI or GUI 0 Answers