Hi, I’m experimenting with Unity 6.6 Alpha and I’m running into a strange issue in my project. After every script change and recompilation (when returning to the Unity editor), I suddenly get 800+ script errors in the console. The only way to recover from this state is to completely restart Unity. After restarting, everything works fine again until I make another script change, which immediately causes the 800+ errors to appear again.
I haven’t been able to reproduce this issue in an empty project, so it seems to be specific to my project. Is this a known issue in Unity 6.6? Has anyone else experienced something similar or found a solution?
How dare you not tell what the errors are? Are we seeing the same thing? I do get an error when i create a new MonoBehavior script. It’s piling up over 1000 error messages in log within seconds. Goes away if you open it in Visual Studio, add 1 empty character somewhere and save it. The modification date will then normalize.
But i have not seen that happening in normal use today and i’ve been messing/coding with it for many hours.
You are right, it would probably be a good idea to include those errors as well… They are all compilation errors, such as nonexistent namespaces, missing methods or classes, and similar issues.
error CS0246: The type or namespace name 'DataModels' could not be found (are you missing a using directive or an assembly reference?)
error CS0246: The type or namespace name 'MissionReport' could not be found (are you missing a using directive or an assembly reference?)
error CS0246: The type or namespace name 'RpcParams' could not be found (are you missing a using directive or an assembly reference?)
error CS0246: The type or namespace name 'Item' could not be found (are you missing a using directive or an assembly reference?)
error CS0246: The type or namespace name 'RpcAttribute' could not be found (are you missing a using directive or an assembly reference?)
error CS0246: The type or namespace name 'Rpc' could not be found (are you missing a using directive or an assembly reference?)
error CS0103: The name 'SendTo' does not exist in the current context
error CS0246: The type or namespace name 'InputController' could not be found (are you missing a using directive or an assembly reference?)
error CS0246: The type or namespace name 'TMP_Text' could not be found (are you missing a using directive or an assembly reference?)
error CS0234: The type or namespace name 'InputSystem' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?)
error CS0246: The type or namespace name 'Image' could not be found (are you missing a using directive or an assembly reference?)
error CS0246: The type or namespace name 'INetworkSerializable' could not be found (are you missing a using directive or an assembly reference?)
error CS0246: The type or namespace name 'Member' could not be found (are you missing a using directive or an assembly reference?)
error CS0246: The type or namespace name 'BufferSerializer<>' could not be found (are you missing a using directive or an assembly reference?)
error CS0246: The type or namespace name 'RawImage' could not be found (are you missing a using directive or an assembly reference?)
error CS0246: The type or namespace name 'FixedString64Bytes' could not be found (are you missing a using directive or an assembly reference?)
error CS0246: The type or namespace name 'IReaderWriter' could not be found (are you missing a using directive or an assembly reference?)
error CS0246: The type or namespace name 'InputAction' could not be found (are you missing a using directive or an assembly reference?)
error CS0246: The type or namespace name 'InputActionAsset' could not be found (are you missing a using directive or an assembly reference?)
error CS0246: The type or namespace name 'InputActionReference' could not be found (are you missing a using directive or an assembly reference?)
error CS0246: The type or namespace name 'MotorAudioController' could not be found (are you missing a using directive or an assembly reference?)
error CS0246: The type or namespace name 'Volume' could not be found (are you missing a using directive or an assembly reference?)
error CS0246: The type or namespace name 'Rig' could not be found (are you missing a using directive or an assembly reference?)
error CS0246: The type or namespace name 'MultiAimConstraint' could not be found (are you missing a using directive or an assembly reference?)
error CS0246: The type or namespace name 'NetworkBehaviour' could not be found (are you missing a using directive or an assembly reference?)
error CS0246: The type or namespace name 'Lobby' could not be found (are you missing a using directive or an assembly reference?)
error CS0246: The type or namespace name 'CinemachineCamera' could not be found (are you missing a using directive or an assembly reference?)
Thank you very much for your reply. I tried “Regenerate project files”, but it doesn’t solve the problem. I simply have to close the editor and reopen it after every script change. I think that the link you sent addresses similar issues, but on the IDE side (VS/Rider). The errors I mentioned are appearing directly in the Unity console.
Are these errors sticky? If they prevent you from entering playmode they are “real” compile errors. But there are cases where the log may show compile errors but they may have been intermediate errors of some kind.
As to resetting: try deleting the /Library and /Obj folders to rule out any corruption in the Library or incremental compile issues.
If your project contains any 3rd party scripting assets they may not be compatible with 6.6 (yet) and thus cause problems. I’m specifically thinking Hot Reload for some reason.
Do check Package Manager for updates. If there are any, install them.
Hi, yes, the errors are sticky - they prevent me from entering Play Mode. I tried both “Reimport All” and your suggestion of deleting the Library and Obj folders, but the problem still persists.
I’m not using Hot Reload. Other than DoTween, I’m also not using any third-party scripting assets. All packages are up to date as well.
For now, I reverted back to 6.5b. At the moment, 6.6a is unusable in my project.
You should not downgrade a project. I hope you tried the alpha in a copy of the project you work in.
Downgrading is not supported and due to changing serialization formats, once an asset has been opened and saved in a newer editor version, there is always the risk that the older editor version will no longer read the asset correctly, either considering it corrupt or getting confused about its state.
If you do downgrade, it is mandatory (for the same reasons) to at least delete the Library and Obj folders.