docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method AddTexture

    AddTexture(CommandBuffer, ref Vector4, Texture)

    Add a texture into the atlas.

    Declaration
    public virtual bool AddTexture(CommandBuffer cmd, ref Vector4 scaleOffset, Texture texture)
    Parameters
    Type Name Description
    CommandBuffer cmd

    Command buffer used for texture copy.

    Vector4 scaleOffset

    Sub-texture rectangle for the added texture. Scale in .xy, offset int .zw

    Texture texture

    The texture to be added.

    Returns
    Type Description
    bool

    True if the atlas contains the texture, 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)