Search Issue Tracker

Fixed in 2017.3.0f3

Fixed in 2017.1.X, 2017.2.X

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 (4)

  1. johnmichlee

    Jan 19, 2020 08:37

  2. johnmichlee

    Jan 19, 2020 08:36

  3. johnmichlee

    Jan 19, 2020 08:36

  4. 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.