Search Issue Tracker

Fixed in future release

Votes

2

Found in

Issue ID

934819

Regression

No

Synchronization Context "send function" should post and wait

Scripting

-

-

Priority: 3Not yet prioritized for a release

-

Severity: 0Severity not yet defined

https://forum.unity3d.com/threads/synchronizationcontext-send-to-main-thread-fails.483144/

await Task.Run(
() =>
{
syncContext.Send(
s =>
{
// does NOT work:
var sphere2 = GameObject.CreatePrimitive(PrimitiveType.Sphere);
},
null);
});
A user is issuing Send from a background thread, so he receives an error.

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.