docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor PowerOfTwoTextureAtlas

    PowerOfTwoTextureAtlas(int, int, GraphicsFormat, FilterMode, string, bool)

    Create a new texture atlas, must have power of two size.

    Declaration
    public PowerOfTwoTextureAtlas(int size, int mipPadding, GraphicsFormat format, FilterMode filterMode = FilterMode.Point, string name = "", bool useMipMap = true)
    Parameters
    Type Name Description
    int size

    The size of the atlas in pixels. Must be power of two.

    int mipPadding

    Amount of mip padding in power of two.

    GraphicsFormat format

    Atlas texture format

    FilterMode filterMode

    Atlas texture filter mode.

    string name

    Name of the atlas

    bool useMipMap

    Use mip maps

    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)