Component.particleEmitter Manual     Reference     Scripting  
Scripting > Runtime Classes > Component
Component.particleEmitter

var particleEmitter : ParticleEmitter

Description

The ParticleEmitter attached to this GameObject (null if there is none attached).

JavaScripts
particleEmitter.emit = true;

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Awake() {
particleEmitter.emit = true;
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Awake():
particleEmitter.emit = true