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

C#

C# game development.

I've been ignoring these little warnings given by Unity because it has no affect on the scripts so far-. But I want to be sure it will not cause a problem in the future. Its giving me the following errors:

"ssets/Standard Assets/ParticleSystems/Scripts/ExtinguishableParticleSystem.cs(24,24): warning CS0618: UnityEngine.ParticleSystem.enableEmission' is obsolete:enableEmission property is deprecated. Use emission.enable instead.'"

"Assets/Standard Assets/ParticleSystems/Scripts/Hose.cs(31,24): warning CS0618: UnityEngine.ParticleSystem.enableEmission' is obsolete:enableEmission property is deprecated. Use emission.enable instead.' "

"Assets/Standard Assets/ParticleSystems/Scripts/WaterHoseParticles.cs(41,48): warning CS0618: UnityEngine.ParticleCollisionEvent.collider' is obsolete:collider property is deprecated. Use colliderComponent instead, which supports Collider and Collider2D component"

"Assets/Standard Assets/Utility/TimedObjectActivator.cs(82,47): warning CS0618: UnityEngine.Application.loadedLevel' is obsolete:Use SceneManager to determine what scenes have been loaded' "

What do these mean?

1 Answer

Stephen Gheysens
Stephen Gheysens
11,935 Points

Hi Christian, Programming language definitions get updated over time, whether you're working in C#, Java, Ruby, or another. The foundations and companies that maintain languages will add features (like new classes and functions), correct old features that don't behave as expected, and sometimes deprecate old functionality if it doesn't get enough use or has been replaced with a newer version. It looks like you're calling functions that have been deprecated. This means that they are not longer supported and will either cause your program to not run as expected now or later. Let me know if that answers your question!