docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Clamp Operators

    Clamp, round, or limit values.

    Page Description
    Ceiling Round an input up to the nearest integer.
    Clamp Limit an input value between a lower and upper bound for each axis.
    Discretize Get the multiple of an input that's closest to a second input.
    Floor Round an input value down to the nearest integer.
    Maximum Get the largest value from all input values.
    Minimum Get the smallest value from all input values.
    Round Round an input value to the nearest integer.
    Saturate Clamp a value between 0 and 1.
    In This Article
    Back to top
    Copyright © 2025 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)