Steps to reproduce:
- Create a new project in 6000.7.0a6
- Install Netcode for Entities package
- Upload the attached script "Repro.cs" to the project and observe it compiles without errors
- Close the Editor and reopen the same project in 6000.7.0b1 or 7000.0.0a1
- Accept the API Updater prompt when it appears
- Observe the Console
Actual results:
Getting multiple errors because the old Unity.NetCode was removed and replaced with Unity.Netcode.
Because of this, any reference got a full import path added, the old import was removed, and a variable got the import path attached to it by mistake.
Errors:
error CS1922: Cannot initialize type 'GhostOwner' with a collection initializer because it does not implement 'System.Collections.IEnumerable'
error CS0747: Invalid initializer member declarator
error CS0118: 'NetworkId' is a type but is used like a variable
Expected results:
Importer works as expected and replaces the old import with a new without removing the old and adding the import path to each reference.
Reproducible with versions:
6000.7.0b1 (6f112f2bea37), 7000.0.0a1 (dfdad7ed5522)
Not reproducible with versions:
6000.7.0a6 (b5c7d4d317b3)
Tested on (OS):
MacOS Sequoia 15.7.9