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 Components in Unity Organizing Code into Methods Project Overview

How to fix compilation errors?

I tried to compile this project (June 2018) and got the following compilation errors. How can I fix them?

  1. SpeedTree materials need to be regenerated
  2. WebPlayer was removed in 5.4, consider using WebGL

1 Answer

Answers:

  1. Save the project, close it, and reopen it
  2. Change the bad platform target in the script to the one suggested in the error message. You can double click the error message to go to the file in your editor. Then change "BuildTargetGroup.WebPlayer" to "BuildTargetGroup.WebGL".