docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Axis

    Axis(int)

    Returns the positive axis corresponding to a given axis. Negative axes counts backwards from the inner dimension.

    Declaration
    public int Axis(int axis)
    Parameters
    Type Name Description
    int axis

    The axis to wrap.

    Returns
    Type Description
    int

    The positive axis.

    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)