Version: Unity 6.5 (6000.5)
  • Supported
  • Legacy
Language : English
Create a 2D texture array in a script
Sample a 2D texture array in a shader

Render to a 2D texture array

To render to a 2D texture array, create a render texture A special type of Texture that is created and updated at runtime. To use them, first create a new Render Texture and designate one of your Cameras to render into it. Then you can use the Render Texture in a Material just like a regular Texture. More info
See in Glossary
and set the Dimension property to 2D Array.

If you use the Graphics.SetRenderTarget API, set the depthSlice parameter to the slice you want to render to.

If the platform supports geometry shaders, use a geometry shaderA program that runs on the GPU. More info
See in Glossary
to render to individual slices, or set depthSlice to -1 to render to all the slices.

Create a 2D texture array in a script
Sample a 2D texture array in a shader
Copyright ©2005-2026 Unity Technologies. All rights reserved. Built from job ID 71047759. Built on: 2026年07月03日.

AltStyle によって変換されたページ (->オリジナル) /