Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


2D texture arrays

Resources for creating and using an array of textures with the same size, format and flags.
Read time 1 minuteLast updated 12 days ago

Resources for creating and using an array of 2D textures with the same size, format and flags.

Page

Description

Introduction to texture arraysLearn about the structure of 2D texture arrays, and which platforms and graphics APIs support them.
Create a texture arrayImport 2D texture arrays from source texture files that are divided into cells.
Create a texture array in a scriptUse the
Texture2DArray
API to initialize a 3D texture and set the pixel data.
Render to a 2D texture arrayCreate a render texture to render to a 2D texture array.
Sample a texture array in a shaderSample a 2D texture array in ShaderLab and High-level Shader Language (HLSL).

Additional resources