docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetRotation

    GetRotation()

    Returns the current state's rotation. If there is no change in the rotation, then it will return identity.

    Declaration
    public Quaternion GetRotation()
    Returns
    Type Description
    Quaternion

    Quaternion

    Remarks

    When there is no change in an updated state's rotation then there are no values to return. Checking for HasRotAngleChange is one way to detect this.

    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)