Class TextureXR
Utility class providing default textures compatible in any XR setup.
Inherited Members
Namespace: UnityEngine .Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
public static class TextureXR
Properties
Name | Description |
---|---|
dimension | Dimension of XR textures. |
max |
Maximum number of views handled by the XR system. |
slices | Number of slices used by the XR system. |
use |
Returns true if the XR system uses texture arrays. |
Methods
Name | Description |
---|---|
Get |
Default black texture. |
Get |
Default black texture 3D. |
Get |
Default black texture array. |
Get |
Default black unsigned integer texture. |
Get |
Default clear color (0, 0, 0, 1) texture. |
Get |
Default magenta texture. |
Get |
Default white texture. |
Initialize(Command |
Initialize XR textures. Must be called at least once. |