Class MirrorViewRenderer
XR mirror view rendering on XR Composition Layers. This component works on BiRP, URP and HDRP. Call XRDisplaySystem.SetPreferredMirrorBlitMode() to set the mirror blit mode.
Inherited Members
Namespace: Unity.XR.CompositionLayers .Rendering
Assembly: Unity.XR.CompositionLayers.dll
Syntax
[ExecuteAlways]
[RequireComponent(typeof(Camera))]
[DefaultExecutionOrder(32000)]
public class MirrorViewRenderer : MonoBehaviour
Fields
AlphaMode
AlphaMode.Opaque works fine in most cases. AlphaMode.Alpha or AlphaMode.Premultily will be used for overlay drawing. (Need the alpha channel on back buffers.)
Declaration
public ImageFilters.AlphaMode AlphaMode
Field Value
Type | Description |
---|---|
Image |