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
- Editor default Stylesheet/Matching Selector buttons in Debugger don't do anything
- Graphics.DrawMeshNow stops rendering Render Texture after a few frames when viewed in the Player
- New selector in Matching Selectors displays as on line -1 in debugger
- The first frames are skipped when playing a video
- Text auto-scrolling can not work when naming assets/objects until backspace key is pressed
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