docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ReserveSpace

    ReserveSpace(Texture)

    Reserves the space on the texture atlas

    Declaration
    public bool ReserveSpace(Texture texture)
    Parameters
    Type Name Description
    Texture texture

    The source texture

    Returns
    Type Description
    bool

    True if the space is reserved

    ReserveSpace(Texture, int, int)

    Reserves the space on the texture atlas

    Declaration
    public bool ReserveSpace(Texture texture, int width, int height)
    Parameters
    Type Name Description
    Texture texture

    The source texture

    int width

    The width

    int height

    The height

    Returns
    Type Description
    bool

    True if the space is reserved

    ReserveSpace(Texture, Texture, int, int)

    Reserves the space on the texture atlas

    Declaration
    public bool ReserveSpace(Texture textureA, Texture textureB, int width, int height)
    Parameters
    Type Name Description
    Texture textureA

    The source texture A

    Texture textureB

    The source texture B

    int width

    The width

    int height

    The height

    Returns
    Type Description
    bool

    True if the space is reserved

    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)