Hi there, I am using C# and working on particle systems and them becoming enabled/disabled. It is currently working without a hitch, however considering it won’t allow me to use .enabled I have to use .active = true. Since i am using quite a few particle systems like this, I am receiving a lot of warnings. Does anyone know a way around this?
Script Example:
public ParticleSystem blowing;
public ParticleSystem blowing2;
public ParticleSystem blowing3;
public ParticleSystem blowing4;
public ParticleSystem fire;
public ParticleSystem smoke;
public ParticleSystem dust;
public ParticleSystem tornado;
public ParticleSystem snow;
public ParticleSystem snow2;
public ParticleSystem snow3;
void Update()
{
if(robot.transform.position.y <= 14)
{
blowing.active = true;
blowing2.active = true;
blowing3.active = true;
blowing4.active = true;
}
}
These are just a few examples, I also use .active for enabling music (won’t allow me to use enabled)