Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


randomDirectionAmount

Randomizes the starting direction of particles.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.ParticleSystemModule
public float randomDirectionAmount { get; set; }

Remarks

This accepts values from 0 to 1, where 0 causes the particles to retain their default direction and 1 causes a completely random direction. Values in between 0 and 1 blend the default shape direction with a random direction. This means that at 0.5, you get 50% of the default shape and 50% of a randomized direction. Additional Resources: ParticleSystem.ShapeModule.shapeType.