ParticleEmitter.rndRotation Manual     Reference     Scripting  
Scripting > Runtime Classes > ParticleEmitter
ParticleEmitter.rndRotation

var rndRotation : bool

Description

If enabled, the particles will be spawned with random rotations.

JavaScripts
particleEmitter.rndRotation = true;

using UnityEngine;
using System.Collections;

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

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Awake():
particleEmitter.rndRotation = true