Search Issue Tracker
Fixed in 0.8.0-preview.8
Votes
0
Found in [Package]
2019.3
2019.3.4f1
Issue ID
1227353
Regression
No
IL2CPP and Entities builds broken and throws Not Supported Exception if the project contains a native plugin
How to reproduce:
1. Open attached project "EntitiesStandalone.zip"
2. In Project window, select "Settings" -> "ClassicBuildSettings"
3. In Inspector window, click "Build and Run"
4. Observe the built application
Expected result: no errors are thrown, the ground is visible
Actual result: an error is thrown, the ground is not visible
Reproducible with: 2019.3.1f1, 2019.3.6f1 (0.7.0-preview.19)
Not reproducible with: 2019.3.6f1, 2020.1.0b2, 2020.2.0a3 (0.8.0-preview.8)
Could not test with: 2017.4, 2018.4 (due to package errors in the console window)
The error:
NotSupportedException: To marshal a managed method, please add an attribute named 'MonoPInvokeCallback' to the method definition. The method we're attempting to marshal is: Unity.Entities.StructuralChange::AddComponentEntitiesBatchExecute
at Unity.Burst.BurstCompiler.Compile[T] (T delegateObj, System.Boolean isFunctionPointer)
at Unity.Burst.BurstCompiler.CompileFunctionPointer[T]
at Unity.Entities.StructuralChange.Initialize ()
at Unity.Entities.EntityManager..ctor (Unity.Entities.World world)
at Unity.Entities.World..ctor (System.String name, Unity.Entities.WorldFlags flags)
at Unity.Entities.DefaultWorldInitialization.Initialize
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Scene Filter buttons reset to "All" in the Occlusion Window when entering Play Mode but the Scene Filters themselves do not reset
- Transition property is not disabled in the UI Builder when it is set by a variable
- Crash on PersistentManager::GetSerializedType when opening a specific Scene
- GlobalObjectId.GetGlobalObjectIdSlow returns empty ID when in Prefab Isolation Mode
- Crash on Transform::RemoveFromParent when deleting a child GameObject
Resolution Note (fix version 0.8.0-preview.8):
Fixed in: Entities 8.0.8-preview.0 available in 2019.3.6f1, 2020.1, 2020.2