Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Strip trail gaps when non clamp

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

  1. Crouching-Tuna

    Crouching-Tuna

    Joined:
    Apr 4, 2014
    Posts:
    82
    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