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 trialKahlil Calavas
9,238 PointsI have several compiler errors on frogsnlogs. failed to load analytics manager speedtree material needs regen.
All i did was open the project and...press play here are the errors
Assertion failed: Failed to unload 'ProjectSettings/UnityAnalyticsManager.asset'
SpeedTree materials need to be regenerated. (shown 4 times in log)
Assets/Standard Assets/ParticleSystems/Scripts/WaterHoseParticles.cs(43,25): error CS1061: Type UnityEngine.Component' does not contain a definition for
attachedRigidbody' and no extension method attachedRigidbody' of type
UnityEngine.Component' could be found. Are you missing an assembly reference?
Assets/Standard Assets/ParticleSystems/Scripts/WaterHoseParticles.cs(46,25): error CS1061: Type UnityEngine.Component' does not contain a definition for
attachedRigidbody' and no extension method attachedRigidbody' of type
UnityEngine.Component' could be found. Are you missing an assembly reference?
2 Answers
Wesley Trayer
13,812 PointsI just ran into this problem as well.
To fix the "SpeedTree" error, you can either click on the error in the console tab, then switch to the project tab where the problem file should now be selected... Or you can go to the project tab and select "Assets > Standard Assets > Environment > SpeedTree". There should now be three files: Broadleaf, Conifer, Palm.
Open one and there will be a bunch of files, but the one you're looking for has a little "play" button on it. Select the file and look in the Inspector. The first component will contain: Meshes, Materials, LODs, LOD 0 Options. In LOD 0 Options should be an error. Click "Apply and Generate Materials". Repeat for each tree. Then close, and re-open Unity.
When I did this it fixed all of the other errors as well. Hope this helps!
Kahlil Calavas
9,238 PointsThank you! I ended up deleting the library folder and when it re generated the errors went away.
Wesley Trayer
13,812 PointsGreat!