docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Attribute Operators

    Get the data from particle attributes.

    Page Description
    Age Over Lifetime Operator Get the age of a particle relative to its lifetime.
    Get Attribute: age Operator Get the time since a particle spawned.
    Get Attribute: alive Operator Get whether a particle is alive or not.
    Get Attribute: alpha Operator Get the alpha value of a rendered particle.
    Get Attribute: angle Operator Get the rotation of a particle.
    Get Attribute: angularVelocity Operator Get the rotation speed of a particle.
    Get Attribute: axisX Operator Get the x-axis of a particle.
    Get Attribute: axisY Operator Get the y-axis of a particle.
    Get Attribute: axisZ Operator Get the z-axis of a particle.
    Get Attribute: collisionEventCount Operator Get the number of collisions that occur during a particle's lifetime.
    Get Attribute: collisionEventNormal Operator Get the normal of the collider's surface at the hit position.
    Get Attribute: collisionEventPosition Operator Get the position of the collision between particles and colliders.
    Get Attribute: color Operator Get the color of a particle.
    Get Attribute: direction Operator Get the direction of a particle.
    Get Attribute: hasCollisionEvent Operator Return True or False if a collision happened in this frame.
    Get Attribute: lifetime Operator Get the amount of time a particle should live for.
    Get Attribute: mass Operator Get the mass of a particle.
    Get Attribute: meshIndex Operator Get the mesh index of a particle.
    Get Attribute: oldPosition Operator Get the position of a particle before velocity is added.
    Get Attribute: oldVelocity Operator Get the velocity of a particle before force integration.
    Get Attribute: particleCountInStrip Operator Get the number of particles in a particle strip.
    Get Attribute: particleId Operator Get a unique ID that identifies a particle.
    Get Attribute: particleIndexInStrip Operator Get the index of a particle in its particle strip.
    Get Attribute: pivot Operator Get the origin coordinates of a particle.
    Get Attribute: position Operator Get the position of a particle.
    Get Attribute: scale Operator Get the scale of the particle.
    Get Attribute: seed Operator Get the random number value of a particle.
    Get Attribute: size Operator Get the size of a particle.
    Get Attribute: spawnCount Operator Get the number of particles spawned in the current frame.
    Get Attribute: spawnIndex Operator Get the index of a particle when it spawned.
    Get Attribute: spawnIndexInStrip Operator Get the spawn index of a particle within its strip.
    Get Attribute: spawnTime Operator Get the time that the particle spawned.
    Get Attribute: stripIndex Operator Get the index of the particle strip a particle belongs to.
    Get Attribute: targetPosition Operator Get the target coordinates of a particle.
    Get Attribute: texIndex Operator Get the frame number from a flipbook texture a particle uses.
    Get Attribute: velocity Operator Get the current velocity of a particle.
    Get Custom Attribute Operator Get the value of a custom attribute.
    Get Ratio over Strip Operator Get a normalized 0-1 value across the strip length.

    Additional resources

    • Attributes
    • Standard Attribute Reference
    • Attribute Blocks
    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)