Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


rotateWithStretchDirection

Rotate the particles based on the direction they are stretched in. This is added on top of other particle rotation.
Read time 1 minuteLast updated 11 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.ParticleSystemModule
public bool rotateWithStretchDirection { get; set; }

Remarks

This property only has effect when ParticleSystemRenderer.freeformStretching is enabled. When ParticleSystemRenderer.freeformStretching is disabled, particles are always rotated based on the direction they are stretched in, even if ParticleSystemRenderer.rotateWithStretchDirection is false.