- Home /
Particle System Scripting help
I'm scripting a scene in Unity where on exiting a trigger a particle system will activate. The problem is that in my script I use "`particleSystem.Play = true;`" (this is C#)which is what I'm told to use in the Script Reference, however I am given this error:
error CS0131: The left-hand side of an assignment must be a variable, a property or an indexer
I don't understand what it's telling me can someone explain this and tell me how to fix this? I'm using Particle System not Particle Emitter on my object.
Answer by antx · Feb 16, 2013 at 01:22 AM
I think you have to do this:
particleSystem.Play();
The error you get basically says that particleSystem.Play is not a variable but rather a function.
Your answer
![](https://koobas.hobune.stream/wayback/20220613092758im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Particle System Using Code 0 Answers
Assign random start lifetime for particle system from script 2 Answers