Class ARBackgroundRenderer
Add this component to a Camera
to copy the color camera's texture onto the background.
Inheritance
System.Object
ARBackgroundRenderer
Namespace: UnityEngine.XR.ARFoundation
Syntax
public sealed class ARBackgroundRenderer : MonoBehaviour
Remarks
This is the component-ized version of UnityEngine.XR.ARBackgroundRenderer
.
Properties
backgroundRenderer
Get the (non-component) ARBackgroundRenderer
which does the real work.
Declaration
public ARBackgroundRenderer backgroundRenderer { get; }
Property Value
Type | Description |
---|---|
UnityEngine.XR.ARBackgroundRenderer |
material
The Material
to use for background rendering.
Declaration
public Material material { get; set; }
Property Value
Type | Description |
---|---|
Material |
Remarks
If null
, the ARSession will attempt to create a material using
the shader provided by the platform plugin.