docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method IsUniform

    IsUniform(Vector2)

    Checks whether the vector components are the same value.

    Declaration
    public static bool IsUniform(this Vector2 v)
    Parameters
    Type Name Description
    Vector2 v

    Vector to check

    Returns
    Type Description
    bool

    True, if the vector elements are the same. False, otherwise.

    IsUniform(Vector3)

    Checks whether the vector components are the same value.

    Declaration
    public static bool IsUniform(this Vector3 v)
    Parameters
    Type Name Description
    Vector3 v

    Vector to check

    Returns
    Type Description
    bool

    True, if the vector elements are the same. False, otherwise.

    In This Article
    Back to top
    Copyright © 2023 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)