Search Issue Tracker

Fixed in 2017.3.0f3

Fixed in 2017.1, 2017.2

Votes

2

Found in

Issue ID

934819

Regression

No

Synchronization Context "send function" should post and wait

Scripting

-

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.

Add comment

Log in to post comment

All about bugs

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