#Exception: This method should have been replaced by codegen

1 messages · Page 1 of 1 (latest)

past whale
#

So I'm trying to update a 0.51 project from 2020.3 to 2021.3 (as much as I'd like we can't upgrade to 1.0) and none of the code gen runs anymore for entities foreach.

at Unity.Entities.RetainBlobAssetSystem.OnUpdate () [0x00001] ```

As far as I can tell the il processor is running fine on all the assemblies

```- Starting ILPostProcessor 'Unity.Entities.CodeGen.EntitiesILPostProcessors' on Beyond.NetworkCore.dll

  - EILPP : Beyond.NetworkCore : : 298ms (~162ms)

    - EILPP : Beyond.NetworkCore : GetAllComponentTypes: 2ms 

    - EILPP : Beyond.NetworkCore : BlobAssetSafetyVerifier: 34ms 

    - EILPP : Beyond.NetworkCore : Cloner: 2ms 

    - EILPP : Beyond.NetworkCore : WriteAssembly: 98ms 

- Finished ILPostProcessor 'Unity.Entities.CodeGen.EntitiesILPostProcessors' on Beyond.NetworkCore.dll in 0.303218 seconds

Probably a long shot asking for support for 0.51 but wondering if anyone has any idea on how I could debug what's actually wrong? It's the same entities version just a newer version of Unity.

past whale
#

If anyone else has a similar problem, deleting project settings and replacing with a fresh copy fixed it

#

I need to go through and figure out what setting broke it

past whale
#

seems to be the script define change between 2020 and 2021, not sure how/why/what but re-adding existing defines with new format and it seems fine

#

debugging steps in case it helps someone
stripped project back to nothing but entities package and existing project settings, nuking library and it still had issues

#

so my guess was project settings so replaced everything else except it, still had issue, replaced project settings, no problem

#

rolled back project, still had issue (just to confirm) then replaced only project settings with a fresh copy, problem gone

#

went through every setting 1 by 1 reverting to our broken version