# TextureDimension

> Texture "dimension" (type).

## Definition

* **Type:** Enum
* **Namespace:** [UnityEngine.Rendering](/engine/6000.0/script-reference/unityengine/rendering.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public enum TextureDimension
```

## Remarks

Indicates type of a texture (2D texture, cubemap, 3D volume texture etc.).

Additional Resources: [Texture.dimension](/engine/6000.0/script-reference/unityengine/texture/dimension.md), [MaterialProperty.textureDimension](/engine/6000.0/script-reference/unityeditor/materialproperty/texturedimension.md).

## Fields

| Value                                                                                              | Description                                                                                          |
| -------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| [Any](/engine/6000.0/script-reference/unityengine/rendering/texturedimension/any.md)               | Any texture type.                                                                                    |
| [Cube](/engine/6000.0/script-reference/unityengine/rendering/texturedimension/cube.md)             | [Cubemap](/engine/6000.0/script-reference/unityengine/cubemap.md) texture.                           |
| [CubeArray](/engine/6000.0/script-reference/unityengine/rendering/texturedimension/cubearray.md)   | Cubemap array texture ([CubemapArray](/engine/6000.0/script-reference/unityengine/cubemaparray.md)). |
| [None](/engine/6000.0/script-reference/unityengine/rendering/texturedimension/none.md)             | No texture is assigned.                                                                              |
| [Tex2D](/engine/6000.0/script-reference/unityengine/rendering/texturedimension/tex2d.md)           | 2D texture ([Texture2D](/engine/6000.0/script-reference/unityengine/texture2d.md)).                  |
| [Tex2DArray](/engine/6000.0/script-reference/unityengine/rendering/texturedimension/tex2darray.md) | 2D array texture ([Texture2DArray](/engine/6000.0/script-reference/unityengine/texture2darray.md)).  |
| [Tex3D](/engine/6000.0/script-reference/unityengine/rendering/texturedimension/tex3d.md)           | 3D volume texture ([Texture3D](/engine/6000.0/script-reference/unityengine/texture3d.md)).           |
| [Unknown](/engine/6000.0/script-reference/unityengine/rendering/texturedimension/unknown.md)       | Texture type is not initialized or unknown.                                                          |
