docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Size

    Size(Texture)

    Retrieves texture width and height as a Vector2Int.

    Declaration
    public static Vector2Int Size(this Texture texture)
    Parameters
    Type Name Description
    Texture texture

    The texture to retrieve dimensions from.

    Returns
    Type Description
    Vector2Int

    The texture dimensions, in pixels.

    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)