Water hose particles error?
I am trying to start a new game in unity 5 but I can not play because of this error: Assets/SampleAssets/Effects/ParticleSystems/scripts/WaterHoseParticles.cs(7,32): error CS0619: UnityEngine.ParticleSystem.CollisionEvent' is obsolete:
ParticleSystem.CollisionEvent has been deprecated. Use ParticleCollisionEvent instead (UnityUpgradable) -> ParticleCollisionEvent'
If someone could please help me with this ASAP I would really appreciate it!
Answer by EmHuynh · Feb 17, 2016 at 11:23 PM
Hey, @samuelmcanally1.
Change ParticleSystem.CollisionEvent[]
to ParticleCollisionEvent[]
.
So this how we declare it now:
// Obsolete:
// public ParticleSystem.CollisionEvent[] collisionEvents = new ParticleSystem.CollisionEvent[ 8 ];
// Latest:
public ParticleCollisionEvent[] collisionEvents = new ParticleCollisionEvent[ 8 ];
Answer by samuelmcanally1 · Feb 18, 2016 at 12:50 AM
Thanks so much! it works now! I have been having this error for a while, I really appreciate your help!
Thank you, @samuelmcanally1. Let us know if you have more questions! (:
Your answer
![](https://koobas.hobune.stream/wayback/20220612064627im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Failed extracting collision mesh error 0 Answers
Scripting problem 1 Answer
Required API level 26, android sdk 2 Answers
InvalidCastException: Cannot cast from source type to destination type 0 Answers