Question about how to asyncly run bunch of scripts

Hi guys, I have recently encounter this problem that bothered me hard.
in the case, I have to run multiple scripts to get a new scenes ready to play,
i.e
putting things into a object pool,
setting up background pictures/animations base on lvl codes.
and some other stuffs just like these 2 that will have to be put in either “OnAwake” or “OnStart” method.

this always give the game a long freeze which is not acceptable.

I looked up “scenesManager.loadscenesasync” but it seems it’s not quite relevant.
any good idea?

tyvm!

This really shouldn’t happen at once, you can put objects in as you go (when you need them first).

Otherwise in general you can put other thread only things which does not use Unity API. So if you have long calculations, you can jobify them.

Depending on your exact game and setting you may can finish the immediate neighborhood around the player (visible area) and do the rest async while you’re passing the control to the player (but before they have the chance to get there).

It really depends on the type of game and the setting.