Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


emitterVelocity

The current Particle System velocity.
Read time 1 minuteLast updated 8 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.ParticleSystemModule
public Vector3 emitterVelocity { get; set; }

Remarks

If you set this property to a particular value, the ParticleSystem.MainModule.emitterVelocityMode automatically switches to ParticleSystemEmitterVelocityMode.Custom.

Examples

using UnityEngine;[RequireComponent(typeof(ParticleSystem))]public class Example : MonoBehaviour{ ParticleSystem.MainModule mainModule; void Start() { var particleSystem = GetComponent<ParticleSystem>(); mainModule = particleSystem.main; } void OnGUI() { GUILayout.Label("Velocity: " + mainModule.emitterVelocity); }}