Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Create a 2D texture array

Import 2D texture arrays from source texture files that are divided into cells.
Read time 1 minuteLast updated 13 days ago

To create a 2D texture array, import a flipbook texture. A flipbook texture contains multiple textures arranged in a grid.
Follow these steps:
  1. Import the texture into your project.
  2. In the Project window, select the texture. Unity displays the texture import settings in the
    Inspector

    ?

    window.

    An example flipbook texture.

  3. In the Inspector window, set Texture Shape to 2D Array.
  4. Set Columns and Rows to the appropriate values for your flipbook texture.
  5. Select Apply.
Unity adds a texture array slice for each cell in the flipbook texture.
For more information, refer to Import a texture.