UniTask
UniTask copied to clipboard
Provides an efficient allocation free async/await integration for Unity.
Hello, I would like to ask how can I replicate this [Task.WhenAny example](https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/concepts/async/start-multiple-async-tasks-and-process-them-as-they-complete?pivots=dotnet-6-0) with UniTask? I am having trouble with this because I kept running into `InvalidOperationException: Already continuation registered,...
DoTween can no longer be added as package from OpenUPM (it was removed a month ago due to licensing issues), the documentation should remove that part of the instructions and...
Issue description ----- I expect Unitask delay to be cancelled when I call _cts.Cancel(); But it continues the delay although Cancel() was called. One thing that I notice is that...
I got "Reentering the Update method is not allowed" exception on WaitForCompletion. Here's a reproducible example. ```C# await Addressables.LoadContentCatalogAsync(someValidCatalogPath); Addressables.LoadAssetAsync(someValidKey).WaitForCompletion(); ```
This line from documentation is wrong: ``` // replacement of yield return new WaitForFixedUpdate(same as UniTask.Yield(PlayerLoopTiming.FixedUpdate)) await UniTask.WaitForFixedUpdate(); ``` Coroutine WaitForFixedUpdate is [called the same frame after physics update](https://docs.unity3d.com/Manual/ExecutionOrder.html#ScriptLifecycleFlowchart) and...
This code throws in GetResult: ``` protected async virtual UniTask Init() { foreach (var prop in GetProperties()) { if (prop.GetValue(this) == null) { var methodInfo = prop.PropertyType.GetMethod("Create", BindingFlags.Public | BindingFlags.Static...
Can someone help me with a question? The delegate field `continuationAction` in `ResourceRequestAwaiter` struct, why is it always null when complete either in async or sync in function `GetResult()` ?...
Hi, Is there a way to kill all running UniTask operations without attaching a cancellation token to each of them? We have a state where we need to "soft restart"...
I've noticed that whenever I wanted to cancel a tween immediately, I'd have to wait until the end of the frame for the tween to stop. Is it possible to...
Hi, i like to ask does this GC.Alloc related to UniTask? tq