docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetTextureID

    GetTextureID(Texture)

    Get sub-texture ID for the atlas.

    Declaration
    public int GetTextureID(Texture texture)
    Parameters
    Type Name Description
    Texture texture

    Source texture.

    Returns
    Type Description
    int

    Texture instance ID.

    GetTextureID(Texture, Texture)

    Get sub-texture ID for the atlas.

    Declaration
    public int GetTextureID(Texture textureA, Texture textureB)
    Parameters
    Type Name Description
    Texture textureA

    Source texture A.

    Texture textureB

    Source texture B.

    Returns
    Type Description
    int

    Combined texture instance ID.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)