Quantcast
Channel: Questions in topic: "loadlevelasync"
Viewing all articles
Browse latest Browse all 194

Does LoadLevelAsync Call OnEnable(), Awake(), and/or Start()?

$
0
0
I've looked around on the internet and couldn't find a solid answer. When using LoadLevelAsync, do any of the above functions get called in the loading thread or are they all called on the main thread? I want to procedurally generate a level in a background thread so the game doesn't freeze every time a new level is generated. Is this possible? If not, how should I go about doing so (generating many objects without freezing the game, whilst showing the player a loading screen)?

Viewing all articles
Browse latest Browse all 194

Trending Articles