Version: Unity 6.1 Alpha (6000.1)
Language : English
Introduction to 2D texture arrays
Create a 2D texture array in a script

Create a 2D texture array

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 InspectorA Unity window that displays information about the currently selected GameObject, asset or project settings, allowing you to inspect and edit the values. More info
    See in Glossary
    window.

    An example flipbook texture.
    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.

Introduction to 2D texture arrays
Create a 2D texture array in a script