Class AREnvironmentProbe
A game object component to manage the reflection probe settings as the environment probe changes are applied.
Inheritance
Inherited Members
Namespace: UnityEngine.XR.ARFoundation
Syntax
[RequireComponent(typeof(ReflectionProbe))]
[DisallowMultipleComponent]
[DefaultExecutionOrder(-2147483646)]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@4.1/api/UnityEngine.XR.ARFoundation.AREnvironmentProbe.html")]
public class AREnvironmentProbe : ARTrackable<XREnvironmentProbe, AREnvironmentProbe>
Properties
environmentTextureFilterMode
Specifies the texture filter mode to be used with the environment texture.
Declaration
public FilterMode environmentTextureFilterMode { get; set; }
Property Value
Type | Description |
---|---|
FilterMode | The texture filter mode to be used with the environment texture. |
extents
The extents of the environment probe. This is always half the size.
Declaration
public Vector3 extents { get; }
Property Value
Type | Description |
---|---|
Vector3 |
nativePtr
A native pointer associated with this environment probe. The data pointed to by this pointer is implementation defined. While the lifetime is also implementation defined, it should be valid at least until the next frame.
Declaration
public IntPtr nativePtr { get; }
Property Value
Type | Description |
---|---|
IntPtr |
placementType
The placement type (for example, manual or automatic). If manual, this probe was created by AddEnvironmentProbe(Pose, Vector3, Vector3).
Declaration
public AREnvironmentProbePlacementType placementType { get; }
Property Value
Type | Description |
---|---|
AREnvironmentProbePlacementType |
size
The size (dimensions) of the environment probe.
Declaration
public Vector3 size { get; }
Property Value
Type | Description |
---|---|
Vector3 |
textureDescriptor
The XRTextureDescriptor
associated with this environment probe. This is used to generate the cubemap texture on the reflection probe component.
Declaration
public XRTextureDescriptor textureDescriptor { get; }
Property Value
Type | Description |
---|---|
XRTextureDescriptor |
Methods
OnAfterSetSessionRelativeData()
Declaration
protected override void OnAfterSetSessionRelativeData()
Overrides
ToString()
Generates a string representation of this AREnvironmentProbe.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | A string representation of this AREnvironmentProbe. |