Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Game Development

Unity Editor Obsolete warnings from downloaded project without any edits, how to fix

I get all these errors anytime I save the scene. Pretty sure it's because something is old and needs to be updated but not sure what to update and how. Anyone know the fix? Here is a screenshot

Assets/Editor/CrossPlatformInput/CrossPlatformInputInitialize.cs(91,34): warning CS0618: UnityEditor.BuildTargetGroup.WebPlayer' is obsolete:WebPlayer was removed in 5.4, consider using WebGL' Assets/Editor/CrossPlatformInput/CrossPlatformInputInitialize.cs(94,34): warning CS0618: UnityEditor.BuildTargetGroup.WP8' is obsolete:Use WSA instead' Assets/Editor/CrossPlatformInput/CrossPlatformInputInitialize.cs(95,34): warning CS0618: UnityEditor.BuildTargetGroup.BlackBerry' is obsolete:BlackBerry has been removed as of 5.4' Assets/Editor/CrossPlatformInput/CrossPlatformInputInitialize.cs(102,34): warning CS0618: UnityEditor.BuildTargetGroup.WP8' is obsolete:Use WSA instead'

1 Answer

Andrew Haley
Andrew Haley
3,945 Points

I know this is old but it came up for me in Google when I was looking into this error. Simply double-clicking the error message in the console will open CrossPlatformInputInitialize.cs in your code editor. Change the bad platform targets to the ones they suggest (in the case of the BlackBerry reference, just delete it entirely). Save your file and the errors will be resolved.