I’m unsuccessfully trying to revisit the samples project.
Initial Steps:
- Create new Unity project (2020.1.0a21.2690)
- Add freshly downloaded, unzipped ecs samples to the project’s assets directory
- Install Hybrid package.
- See a lot of warnings, errors.
- Restart Unity. Six errors remain, warnings gone.
The Errors
-
Assets\EntityComponentSystemSamples-master\EntityComponentSystemSamples-master\ECSSamples\Assets\Advanced\GridPath.Tests\CartesianGridOnCubeShortestPathTests.cs(5,22): error CS0234: The type or namespace name ‘Tests’ does not exist in the namespace ‘Unity.Entities’ (are you missing an assembly reference?)
-
Assets\EntityComponentSystemSamples-master\EntityComponentSystemSamples-master\ECSSamples\Assets\Advanced\GridPath.Tests\CartesianGridOnPlaneShortestPathTests.cs(5,22): error CS0234: The type or namespace name ‘Tests’ does not exist in the namespace ‘Unity.Entities’ (are you missing an assembly reference?)
-
Assets\EntityComponentSystemSamples-master\EntityComponentSystemSamples-master\ECSSamples\Assets\Advanced\GridPath.Tests\CartesianGridOnPlaneShortestPathTests.cs(11,58): error CS0246: The type or namespace name ‘ECSTestsFixture’ could not be found (are you missing a using directive or an assembly reference?)
-
Assets\EntityComponentSystemSamples-master\EntityComponentSystemSamples-master\ECSSamples\Assets\Advanced\GridPath.Tests\CartesianGridOnCubeShortestPathTests.cs(11,57): error CS0246: The type or namespace name ‘ECSTestsFixture’ could not be found (are you missing a using directive or an assembly reference?)
-
Assets\EntityComponentSystemSamples-master\EntityComponentSystemSamples-master\ECSSamples\Assets\StressTests\SubSceneTests\SubSceneTests.cs(4,22): error CS0234: The type or namespace name ‘Tests’ does not exist in the namespace ‘Unity.Entities’ (are you missing an assembly reference?)
-
Assets\EntityComponentSystemSamples-master\EntityComponentSystemSamples-master\ECSSamples\Assets\StressTests\SubSceneTests\SubSceneTests.cs(9,30): error CS0246: The type or namespace name ‘ECSTestsFixture’ could not be found (are you missing a using directive or an assembly reference?)
Next Steps:
- When I try to roll back the Unity version to 2019.3.0f6 I get 28 warnings and 50 errors.
- I restarted as 2020.1 again
- I removed the outermost “EntityComponentSystemSamples-master” directory and errors 5 and 6 went away.
- I deleted the test directories (GridPath.Tests and SubSceneTests) and once Unity recompiled I had 409 errors. The first few errors instructed me to
Enable "Allow 'unsafe' code" in Player Settings to fix this error.I did as I was instructed (Edit > Project Settings > search ‘unsafe’) and when compiling finished again I had 379 errors. - I restarted Unity and the errors remained, most of which were missing namespaces. Double-clicking on the error opened a script in VS Code and I found a bunch of warnings like this:
The referenced project 'Unity.Timeline.Editor.csproj' does not exist.```
At this point I gave up. Anyone have a solution?