Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Strip trail gaps when non clamp

Discussion in 'Graphics Experimental Previews' started by Crouching-Tuna, Apr 25, 2020.

  1. Crouching-Tuna


    Apr 4, 2014
    Hi, i'm recreating Shuriken's trail
    Setup is:
    1. particle flying straight
    2. trigger rate over distance. Clamp to One unchecked. Spawns strips
    3. the more the rate or the speed of the particle, the more likely the gap happens

    (Texture is a leaf, btw, just to show that stripIndex is still correct)

    Which brings me to question. What is it about Clamp to One? If in a frame it spawns more than 1, where will they be positioned, and what will be their age?
    In other Time related nodes, sub-frame stuff works, but does this one work?

    Ultimately i'll attach this to a weapon tip, and when it slices, the trail should be smooth even if the animation takes only 1 frame, instead of jagged the faster it animates