Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Custom Emitter Velocity of Particle Systems Takes Effect with Delay

Discussion in 'General Graphics' started by 3dHomer, Jun 11, 2021.

  1. 3dHomer

    3dHomer

    Joined:
    Jun 6, 2015
    Posts:
    13
    It seems like the custom velocity mode of particle systems (ParticleSystemEmitterVelocityMode.Custom) has a limited usefulness because the provided velocity (ParticleSystem.MainModule.emitterVelocity) is not used in the next ParticleSystem.Emit. Probably the change takes effect in the next frame.

    It makes the whole feature worthless if I use a single particle system for multiple effects (e.g. one system for many projectile impacts). I cannot change emitterVelocity to the velocity of the hit object and call Emit. It would use the outdated emitterVelocity from the previous call that happened may frames ago.
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,845
    This sounds like a bug. Could you file a bug report we with a sample project so we can look into it ?
     
  3. 3dHomer

    3dHomer

    Joined:
    Jun 6, 2015
    Posts:
    13
    Yes, sure.
    Ticket: 1342626_p11lc08sucfa3kv5
    Unity version: 2021.1.7f1
     
    richardkettlewell and karl_jones like this.