how do I fix this error from happening? Apparently “using UnityEditor.Compilation” no longer exists…
error CS0234: The type or namespace name 'Compilation' does not exist in the namespace 'UnityEditor' (are you missing an assembly reference?)
Any help is absolutely appreciated!
Still exist.
I can even add it to a script myself in different versions of Unity.
Are you sure you don’t have any other errors?
I don’t think it would be part of a package.
Maybe try restarting Unity and reopen the script.
Yes, I already tried it @Brathnann I restarted Unity & everything. I’m using Unity 2022.1.3f1. There are no other errors. This only happens when I try to build my game.
Because you’re referencing editor code some where in your scripts that isn’t being conditionally compiled correctly.
4 Likes
@spiney199 that worked! thank you! RealTimeWeather’s latest update forgot to add #if UNITY_EDITOR to using UnityEditor.Compilation when they upgraded it. Will llet them know about it! Thanks!
2 Likes