LocalTransform missing

I’ve not touched ECS in 6 months and am now upgrading my project to Entities 1.0. I’ve fixed several errors, but now end up with dozens of errors saying The type or namespace name 'LocalTransform' could not be found. When I check the packages folder Entities->Unity.Transforms, there is no script called LocalTransform. I’ve now removed the Entities package and added again, but get the same.

I’m stuck. Any help much appreciated.

Entities 1.0 comes with a new approach to transforms: Transforms in Entities | Entities | 1.0.16

Yes. I’ve replaced all my Transform references etc with LocalTransform. I can’t find the LocalTransform definition in my Packages folder though. The Unity.Transforms package folder was definitely updated though (or part of it at least) because I can see scripts that still allow the previous transform system to be used if the ENABLE_TRANSFORM_V1 define is used.

Maybe I’ll just start a new blank project and attempt to add my scripts.

Are you using Entities 1.0.0-pre.15 or 1.0.0-exp.12? You might need to edit manifest.json to upgrade to the former in case you are using an editor version <2022.2.0f1 (which is only available via a deep link right now).

LocalTransform script should be here: [...]\Library\PackageCache\com.unity.entities@1.0.0-pre.15\Unity.Transforms\LocalTransform.cs

1 Like

I had just stumbled on the same issue and updating your packages worked for me. Make sure you also update everything else too.

“com.unity.entities.graphics”: “1.0.0-pre.15”,
“com.unity.physics”: “1.0.0-pre.15”,
“com.unity.entities”: “1.0.0-pre.15”,

Thank you! I edited manifest.json and LocalTraansform.cs has now appeared in the packages folder.