docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method AllocateTextureWithoutBlit

    AllocateTextureWithoutBlit(Texture, int, int, ref Vector4)

    Allocate space from the atlas for a texture.

    Declaration
    public bool AllocateTextureWithoutBlit(Texture texture, int width, int height, ref Vector4 scaleOffset)
    Parameters
    Type Name Description
    Texture texture

    Source texture.

    int width

    Request width in pixels.

    int height

    Request height in pixels.

    Vector4 scaleOffset

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

    Returns
    Type Description
    bool

    True on success, false otherwise.

    AllocateTextureWithoutBlit(int, int, int, ref Vector4)

    Allocate space from the atlas for a texture.

    Declaration
    public virtual bool AllocateTextureWithoutBlit(int instanceId, int width, int height, ref Vector4 scaleOffset)
    Parameters
    Type Name Description
    int instanceId

    Source texture instance ID.

    int width

    Request width in pixels.

    int height

    Request height in pixels.

    Vector4 scaleOffset

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

    Returns
    Type Description
    bool

    True on success, false otherwise.

    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)