docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method IsAxisAligned

    IsAxisAligned(Vector3)

    Checks if a vector is aligned with one of the axis vectors.

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

    The vector.

    Returns
    Type Description
    bool

    True if the vector is aligned with any axis, otherwise false.

    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)