docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetScale

    GetScale()

    Returns the current state's scale. If there is no change in scale, then it returns zero.

    Declaration
    public Vector3 GetScale()
    Returns
    Type Description
    Vector3

    Vector3

    Remarks

    When there is no change in an updated state's scale then there are no values to return. Checking for HasScaleChange 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)