docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Get Ratio Over Strip [0..1]

    Menu Path : Operator > Attribute > Get Ratio Over Strip [0..1]

    The Get Ratio Over Strip attribute returns the ratio of the particle index relative to the total count of particles in that strip, as a value between 0.0 and 1.0.

    Because this Operator relies on the Get Particle Count In Strip operator, it shares the same limitation: it can return wrong values if you use it in the Initialize context, if the strip index property is not constant. For more information, refer to Get Attribute: particleCountInStrip.

    t = particleIndexInStrip / (particleCountInStrip - 1)
    

    Operator properties

    Output Type Description
    t float The ratio of the particle index relative to the total particle count in that strip.

    Details

    If the system you use this Operator in does not have strips, Unity returns 0 instead.

    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)