docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method IsCached

    IsCached(out Vector4, Texture, Texture)

    Check if the atlas contains the textures.

    Declaration
    public bool IsCached(out Vector4 scaleOffset, Texture textureA, Texture textureB)
    Parameters
    Type Name Description
    Vector4 scaleOffset

    Texture scale (.xy) and offset (.zw).

    Texture textureA

    Source texture A.

    Texture textureB

    Source texture B.

    Returns
    Type Description
    bool

    True if the texture is in the atlas, false otherwise.

    IsCached(out Vector4, Texture)

    Check if the atlas contains the textures.

    Declaration
    public bool IsCached(out Vector4 scaleOffset, Texture texture)
    Parameters
    Type Name Description
    Vector4 scaleOffset

    Texture scale (.xy) and offset (.zw).

    Texture texture

    Source texture

    Returns
    Type Description
    bool

    True if the texture is in the atlas, false otherwise.

    IsCached(out Vector4, int)

    Check if the atlas contains the texture.

    Declaration
    public bool IsCached(out Vector4 scaleOffset, int id)
    Parameters
    Type Name Description
    Vector4 scaleOffset

    Texture scale (.xy) and offset (.zw).

    int id

    Source texture instance ID.

    Returns
    Type Description
    bool
    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)