docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor Texture2DAtlas

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

    Creates a new empty texture atlas.

    Declaration
    public Texture2DAtlas(int width, int height, GraphicsFormat format, FilterMode filterMode = FilterMode.Point, bool powerOfTwoPadding = false, string name = "", bool useMipMap = true)
    Parameters
    Type Name Description
    int width

    Width of the atlas in pixels.

    int height

    Height of atlas in pixels.

    GraphicsFormat format

    GraphicsFormat of the atlas.

    FilterMode filterMode

    Filtering mode of the atlas.

    bool powerOfTwoPadding

    Power of two padding.

    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)