You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using UniTask in Unity 2022.3.41.f1 for WebGL export I get the following error:
InvalidOperationException: Target playerLoopTiming is not injected. Please check PlayerLoopHelper.Initialize. PlayerLoopTiming:Update
at Cysharp.Threading.Tasks.PlayerLoopHelper.ThrowInvalidLoopTiming (Cysharp.Threading.Tasks.PlayerLoopTiming playerLoopTiming) [0x00000] in <00000000000000000000000000000000>:0
--- End of stack trace from previous location where exception was thrown ---
I added await UniTask.Yield(PlayerLoopTiming.Initialization); before starting the UniTask and it never proceeds.
It works without any issue for Windows/Linux export and also in the editor.
The text was updated successfully, but these errors were encountered:
There are occasional reports of automatic injection not working in WebGL.
While the exact details are unclear...
As a workaround, I think it would work if you explicitly call Initialize before your product code.
When using UniTask in Unity 2022.3.41.f1 for WebGL export I get the following error:
I added
await UniTask.Yield(PlayerLoopTiming.Initialization);
before starting the UniTask and it never proceeds.It works without any issue for Windows/Linux export and also in the editor.
The text was updated successfully, but these errors were encountered: