Welcome to the Treehouse Community
Looking to learn something new?
Josh Minor2,947 Points
Still getting this error, any help would be appreciated.
Gavin Ralston28,770 Points
It's a bug in the unity engine. If you go into the Hierarchy, open the Environment section, select WaterProDaytime and uncheck the following box in the Inspector, it should remove all of the messages:
Just uncheck that box to the left of the name field.
Here's a bug tracker issue you can subscribe to if you want to see when it's fixed so you can patch it.
Encountered the same error,
After a little bit of removing things slowly to find out which line cause the issue, they are caused by instantiation of a new prefab for the particle effect.
Comment out the
Instantiate(pickupPrefab, transform.position, Quaternion.identity); line in
FlyPickup script and the
Instantiate (pickupPrefab, transform.position, Quaternion.identity); line in
PlayerHealth script would remove the error message from the console and improve your FPS.
I think instantiate a new Prefab object and then remove it later after the animation finish playing is not a really good way to display Particle Effect.
I got the same error. You should change your QualitySettings from High Quality to Low Quality (Edit -> Project Settings -> Quality) After this the errors disappeared for me.