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.

Comments (1)

  1. 2b01680280bd28ed0f07521a36228f72?d=mm

    maxgray1

    Oct 01, 2019 12:11

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.