Class AREnvironmentProbeManager
This class creates, maintains, and destroys environment probe GameObject components as the
XREnvironmentProbeSubsystem
provides updates from environment probes as they are detected in the
environment.
Inheritance
Inherited Members
Namespace: UnityEngine.XR.ARFoundation
Assembly: solution.dll
Syntax
[DisallowMultipleComponent]
[DefaultExecutionOrder(-2147483647)]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@4.2/api/UnityEngine.XR.ARFoundation.AREnvironmentProbeManager.html")]
public sealed class AREnvironmentProbeManager : ARTrackableManager<XREnvironmentProbeSubsystem, XREnvironmentProbeSubsystemDescriptor, XREnvironmentProbeSubsystem.Provider, XREnvironmentProbe, AREnvironmentProbe>
Properties
Name | Description |
---|---|
automaticPlacement | A property of the environment probe subsystem that, if enabled, automatically generates environment probes for the scene. This method is obsolete. Use automaticPlacementRequested or automaticPlacementEnabled instead. |
automaticPlacementEnabled |
|
automaticPlacementRequested | If enabled, requests automatic generation of environment probes for the scene. |
debugPrefab | Specifies a debug Prefab that will be attached to all environment probes. |
environmentTextureFilterMode | Specifies the texture filter mode to be used with the environment texture. |
environmentTextureHDR | Specifies whether the environment textures should be returned as HDR textures. |
environmentTextureHDREnabled | Queries whether environment textures will be provided with high dynamic range. |
environmentTextureHDRRequested | Get or set whether high dynamic range environment textures are requested. |
gameObjectName | The name of the |
Methods
Name | Description |
---|---|
AddEnvironmentProbe(Pose, Vector3, Vector3) | Creates a new environment probe at |
GetEnvironmentProbe(TrackableId) | Attempts to find the environment probe matching the trackable ID currently in the scene. |
GetPrefab() | Gets the prefab that should be instantiated for each AREnvironmentProbe. May be |
OnBeforeStart() | Enables the environment probe functionality by registering listeners for the environment probe events, if
the |
OnCreateTrackable(AREnvironmentProbe) | Invoked when an AREnvironmentProbe is created. |
OnDestroy() | Destroys any game objects created by this environment probe manager for each environment probe, and clears the mapping of environment probes. |
OnTrackablesChanged(List<AREnvironmentProbe>, List<AREnvironmentProbe>, List<AREnvironmentProbe>) | Invoked when the base class detects trackable changes. |
RemoveEnvironmentProbe(AREnvironmentProbe) | Remove an existing environment probe. Support for this feature is provider-specific. Check for support with
the descriptor's
|
Events
Name | Description |
---|---|
environmentProbesChanged | Invoked once per frame with lists of environment probes that have been added, updated, and removed since the last frame. |