docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method MatchOriginUp

    MatchOriginUp(Vector3)

    This function will rotate the XR Origin object such that the XR Origin's up vector will match the provided vector.

    Declaration
    public bool MatchOriginUp(Vector3 destinationUp)
    Parameters
    Type Name Description
    Vector3 destinationUp

    the vector to which the XR Origin object's up vector will be matched.

    Returns
    Type Description
    bool

    Returns true if the rotation is performed or the vectors have already been matched. Otherwise, returns 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)