Version: Unity 6 (6000.0)
Language : English
2D texture arrays
Create a 2D texture array

Introduction to 2D texture arrays

A texture array is a collection of 2D textures with the same size, format, and flags. The individual texture in the array are called slices or layers. In a shaderA program that runs on the GPU. More info
See in Glossary
, you can use an index to sample each slice.

Texture arrays are useful for implementing custom terrainThe landscape in your scene. A Terrain GameObject adds a large flat plane to your scene and you can use the Terrain’s Inspector window to create a detailed landscape. More info
See in Glossary
rendering systems or other special effects where you need an efficient way to access many textures of the same size and format.

Platform support

Texture arrays are supported if the platform supports one of the following graphics APIs:

  • DirectX11 and DirectX12 (Windows)
  • Metal (iOS, macOS)
  • OpenGL Core (macOS, Linux)
  • OpenGL ES 3.0 (Android, WebGL 2.0)
  • Vulkan (Windows, Linux)

To check if a platform supports texture arrays, use the SystemInfo.supports2DArrayTextures API at runtime.

2D texture arrays
Create a 2D texture array