Questions tagged [async]
The async tag has no usage guidance.
10
questions
0
votes
0
answers
29
views
AsyncGPUReadback.RequestIntoNativeArray - owner has been invalidated
I have the following C# code in Unity version 2022.2.0a12:
...
0
votes
0
answers
40
views
UI mask and elements not visible after Async scene change
i have an async loading scene system that redirects to a loading scene and then to the target scene. The function works properly although i found out that some UI elements dont work directly on scene ...
0
votes
1
answer
615
views
Animate Loading Screen During CPU-Heavy Scene Load
I have a scene with lots of lightweight objects and one that takes anywhere between 10 and 45 seconds to load.
At a high level, the Awake method does...
Query database
For each result do some (fairly ...
3
votes
1
answer
3k
views
Preload multiple scenes at the same time and activate them on demand in Unity. [Unity, async, simultaneous]
Preload scene in unity - this question tells us about how we can pre-load a scene in Unity and load it on demand. What it doesn't tell us - how do we pre-load multiple scenes at the same time and also ...
9
votes
2
answers
8k
views
Should I use Async & Await, instead of Coroutines, in Unity?
Should I use Async & Await in Unity? Or should I keep using Coroutines? If I should use Async & Await, how can I do so in a manner comparable to Coroutines?
2
votes
2
answers
840
views
Using Async Await in Unity
I am trying to make a reload mechanism in Unity, but the function is in a scriptable object. This means I cannot use Coroutine as it is in MonoBehaviour. I could think of solving with a simple timer ...
1
vote
0
answers
57
views
Binding Lua Function to Perform tasks using std::async
I am trying to load a bunch of mesh resources in the format of .obj files. Some of the files are very high in poly count so when loading using the below method It takes more than 10 seconds. I would ...
0
votes
1
answer
46
views
My script to play the intro scene the first time the player hits play from the main menu wont work
The script I am using determines if it is the players first time hitting the play button and if it is it will load the intro scene, but if they have played before it will take them strait to the game ...
0
votes
3
answers
251
views
Instead of using yield wait for seconds can I use a UI button for async?
the code below is the code I use to load my game scene ater the intro animation plays. The way it works is that it preloads the game scene because it is big enough it takes time to load and activates ...
-1
votes
2
answers
3k
views
Unity is single thread then why unity webgl says asset bundles are load in main thread
Got stuck in a performance issue in Unity WebGL that whenever my asset bundles are load, my unity game gets freeze for some seconds/minutes. I know that unity is not thread-safe and it is based on a ...