I have a gameobject with the following structure:
Menu1Text >
Sparkle Rising >
SparkleParticlesSecondary
SparkleParticles
Menu1Text = Gameobject with mesh
Sparkle Rising = Empty Gameobject
SparkleParticles & SparkleParticlesSecondary = GameObjects with Ellipsoid Particle Emitter
I want to active and deactivate the particle emit through the gamecontroler script.
I have tried this:
public GameObject M1T;
void Start ()
{
M1T.particleSystem.particleEmitter.emit = false;
}
I get a ’
MissingComponentException: There is no ‘ParticleSystem’ attached to the “Menu1Text” game object, but a script is trying to access it. You probably need to add a ParticleSystem to the game object “Menu1Text”.’ error !