docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method MaxComponent

    MaxComponent(Vector2)

    Returns the largest component of this vector.

    Declaration
    public static float MaxComponent(this Vector2 vector)
    Parameters
    Type Name Description
    Vector2 vector

    The vector whose maximum component will be returned.

    Returns
    Type Description
    float

    The maximum value.

    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)