Questions tagged [async]
The async tag has no summary.
21 questions
0
votes
0
answers
46
views
Controlling Rendering Order of Multiple Canvases in Additive Scenes with Screen Space - Overlay in Unity
Question:
In Unity, I have multiple additive scenes, each with its own camera and Canvas. The Canvases are set to Screen Space - Overlay and use their respective scene cameras. All Canvases are on the ...
1
vote
1
answer
253
views
Is this code using Awaitable correct?
I am upgrading my code from coroutines to using async-await and Awaitables on Unity 6. I have the following code of a spawner:
...
1
vote
0
answers
211
views
Why does AsyncOperation.allowSceneActivation=false NOT stop my scene from loading?
I am trying to halt my level scenes from fully loading until I press a button to start the level but for some odd reason when I call LoadSceneAsync on my Additive ...
0
votes
1
answer
250
views
The WebGL version of my game does not load the next scene when using an async action
I've just created a WebGL build for my puzzle game in Unity. While the Windows version worked just fine, I encountered a bug on the web: it cannot load the next level when you collide with the goal.
...
1
vote
0
answers
176
views
How does the Asynchronous Upload Pipeline actually work?
Unity has an Asynchronous Upload Pipeline which can upload qualifying textures and meshes to the GPU asynchronously over several frames, rather than uploading in one frame and stalling the main thread....
0
votes
0
answers
98
views
Application.WaitForAsyncOperationToComplete() causes game-freeze in Editor
I'm creating a pause menu for my game and I have two scenes: a menu scene (Scene1) and a game scene (Scene2). I load them using the command 'SceneManager.LoadScene(1);' for the menu scene and '...
1
vote
0
answers
789
views
Scene loading finishes (90%) in 1 frame, but isn't isDone until 3 frames later
I am loading scenes async using addressables like so
...
1
vote
1
answer
528
views
How would you write a multithreaded gameloop in C++20 (+) or C++/WinRT?
What are the pros/cons of using either C++20 std:async or C++/WinRT's asynchronous thread and messaging support?
What would the code look like when implementing multithreaded game-loops that ...
0
votes
0
answers
79
views
Cancel a task only if it gets re-run
I have a slow proc gen function that runs when a user changes any parameters.
If a parameter is changed before it has completed, I want it to cancel the task and start a new one.
Currently I have it ...
0
votes
3
answers
546
views
How to make a text-based game with timer systems
This is an interesting question I have, so I ask you to hear me out. No, I'm not just going to ask "how do I do this" and hope someone will give me code.
I've been programming for a long ...
0
votes
0
answers
1k
views
how to make pausable/resumable tasks using c#?
first of all im not using unity. it's a Signalr .Net Backend Program that runs turn-based multiplayer games.
I use c# async methods to make multiplayer scenarios. for example, the player has 10 ...
0
votes
0
answers
1k
views
AsyncGPUReadback.RequestIntoNativeArray - owner has been invalidated
I have the following C# code in Unity version 2022.2.0a12:
...
1
vote
1
answer
253
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 ...
2
votes
1
answer
2k
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
2
answers
5k
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 ...