Brand new user stuck in a complier error loop after update

Hi all,

I’m brand new to Unity after spending a decent amount of time on Blender and just created my first scene. I recently acquired a new particle system asset, and in doing so it might have updated my software or something of the like? I’m not entirely sure.

What I do know is that I have 3 complier errors causing 15 problems, and I can’t for the life of me figure out how to fix them. Here’s how they look in the console:

Assets/Standard Assets/Editor/CrossPlatformInput/CrossPlatformInputInitialize.cs(91,34): error CS0619: UnityEditor.BuildTargetGroup.WebPlayer' is obsolete: WebPlayer was removed in 5.4, consider using WebGL’

Assets/Standard Assets/Editor/CrossPlatformInput/CrossPlatformInputInitialize.cs(94,34): warning CS0618: UnityEditor.BuildTargetGroup.WP8' is obsolete: Use WSA instead’

Assets/Standard Assets/Editor/CrossPlatformInput/CrossPlatformInputInitialize.cs(95,34): warning CS0618: UnityEditor.BuildTargetGroup.BlackBerry' is obsolete: BlackBerry has been removed as of 5.4’

Just to name a few… I tried building and running it through WebGL with no success. Only created further problems. Any help or direction at all would be great!

Sounds like you imported some assets that include some standard assets made for an earlier version of Unity. As the errors say, those cs scripts are referencing Unity features that were removed from Unity way back in Unity 5.4. Just open them and comment out all that stuff. You’re not building for the old WebPlayer or BlackBerry anyway.

The issue doesn’t have to do with what build target you’re using, these are simply errors in the script and Unity cannot compile the code in your project when the code has errors.

Alternatively you could probably just import the standard assets again, which unless they have changed file names, will probably overwrite these older standard asset scripts (which are unlikely to have these script errors still in them). I would assume this would work, but when I moved my project to 2017.x and ran into these same errors I just commented out everything that was a problem.

Thanks, for the quick reply.

I have them opened up in my console but whenever I double-click them nothing comes up. I’m a complete novice at C# or scripting of any sort. Are there directions you can point on how to comment these out?

What particle system asset is it?

When you double click that line in the console it should open your code editor that was installed with Unity to the correct script. Usually that is Visual Studio Community or Mono Develop, etc.

If that is not working for whatever reason, you can just go to the assets and navigate to them manually. The locations of the problem scripts are right there in the error message, as well as the line numbers the problems are at.

As far as how to edit, you’re going to need at least some C# knowledge in order to not break the scripts, so you can figure out if you need to comment out a single line or an entirely useless block of code. You’d need to start on some C# tutorials for that.

Fixed it.

Thanks so much!