I’m trying to get particles to work in-game. I’ve tried everything but nothing I try seems to work.
The particles start playing but only appear very briefly before disappearing. They’re not being destroyed in code but when I look at the inspector during play, the particles are not showing in there.
public void CreateParticle(Vector3 position)
{
GameObject newParticle = (GameObject)Instantiate(hitParticle, position, Quaternion.identity);
listOfParticles.Add(newParticle);
ParticleSystem ps = newParticle.GetComponent<ParticleSystem>();
ps.enableEmission = true;
ps.Play();
}