Class ARCameraBackground
Add this component to a Camera
to copy the color camera's texture onto the background.
Inheritance
System.Object
ARCameraBackground
Namespace: UnityEngine.XR.ARFoundation
Syntax
public sealed class ARCameraBackground : MonoBehaviour
Remarks
This is the component-ized version of UnityEngine.XR.ARBackgroundRenderer
.
Properties
backgroundRenderer
Get the ARBackgroundRenderer
which does the real work.
Declaration
public ARBackgroundRenderer backgroundRenderer { get; }
Property Value
Type | Description |
---|---|
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.
overrideMaterial
When false, a material is generated automatically from the shader included in the platform-specific package. You may override this material if you wish. Normally, you don't need to do this.
Declaration
public bool overrideMaterial { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |