# 2D テクスチャ配列にレンダリングする

> Create a render texture to render to a 2D texture array.

2D テクスチャ配列にレンダリングするには、[レンダーテクスチャ](/engine/6000.0/manual/materials-and-shaders/textures/render-texture.md) を作成し、**Dimension** プロパティを **2D Array** に設定します。

[`Graphics.SetRenderTarget`](/engine/6000.0/script-reference/unity-engine/graphics/set-render-target.md) API を使用する場合は、`depthSlice` パラメーターをレンダリング先のスライスに設定します。

プラットフォームがジオメトリシェーダーをサポートしている場合は、ジオメトリシェーダーを使用して個々のスライスにレンダリングするか、`depthSlice` を `-1` に設定してすべてのスライスにレンダリングします。
