docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Clamp

    Clamps the given value between the given minimum float and maximum float values. Returns the given value if it is within the min and max range. Returns the minimum value if it is under it. Return the maximum value if it is above it.

    Ports

    Inputs

    Port Name Type Default Value Description
    [Float] The floating point value to restrict inside the range defined by the min and max values.
    [Float] The minimum floating point value to compare against.
    [Float] The maximum floating point value to compare against.

    Outputs

    Port Name Type Default Value Description
    [Float] The float result between the min and max values.
    In This Article
    Back to top
    Copyright © 2024 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)