Spawned prefabs are no longer returned in the passed list because of Parallel.Start

Darkmist shared this bug 5 years ago
Outdated

SpawnPrefabInternal() currently does a Parallel.Start(...) to do the actual spawning. This resulted in the original code in IMyPrefabManager.SpawnPrefab() to return an empty result list, because the call to call to SpawnPrefab is eventually not synchronous.

Solution would be to move the code that's currently after the call to SpawnPrefab() to a callback.

Replies (2)

photo
1

Hello, Engineer!


Thank you for your feedback! Your topic has been added between considered issues.

Please keep voting for the issue as it will help us to identify the most serious bugs.


We really appreciate your patience.


Kind Regards

Keen Software House: QA Department

photo
1

Thank you!

Leave a Comment
 
Attach a file