docs.unity3d.com
    Show / Hide Table of Contents

    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
    Object
    UnityEngine.Object
    UnityEngine.Component
    UnityEngine.Behaviour
    UnityEngine.MonoBehaviour
    SubsystemLifecycleManager<XREnvironmentProbeSubsystem, XREnvironmentProbeSubsystemDescriptor, XREnvironmentProbeSubsystem.Provider>
    ARTrackableManager<XREnvironmentProbeSubsystem, XREnvironmentProbeSubsystemDescriptor, XREnvironmentProbeSubsystem.Provider, XREnvironmentProbe, AREnvironmentProbe>
    AREnvironmentProbeManager
    Inherited Members
    ARTrackableManager<XREnvironmentProbeSubsystem, XREnvironmentProbeSubsystemDescriptor, XREnvironmentProbeSubsystem.Provider, XREnvironmentProbe, AREnvironmentProbe>.trackables
    ARTrackableManager<XREnvironmentProbeSubsystem, XREnvironmentProbeSubsystemDescriptor, XREnvironmentProbeSubsystem.Provider, XREnvironmentProbe, AREnvironmentProbe>.SetTrackablesActive(Boolean)
    ARTrackableManager<XREnvironmentProbeSubsystem, XREnvironmentProbeSubsystemDescriptor, XREnvironmentProbeSubsystem.Provider, XREnvironmentProbe, AREnvironmentProbe>.origin
    ARTrackableManager<XREnvironmentProbeSubsystem, XREnvironmentProbeSubsystemDescriptor, XREnvironmentProbeSubsystem.Provider, XREnvironmentProbe, AREnvironmentProbe>.sessionOrigin
    ARTrackableManager<XREnvironmentProbeSubsystem, XREnvironmentProbeSubsystemDescriptor, XREnvironmentProbeSubsystem.Provider, XREnvironmentProbe, AREnvironmentProbe>.gameObjectName
    ARTrackableManager<XREnvironmentProbeSubsystem, XREnvironmentProbeSubsystemDescriptor, XREnvironmentProbeSubsystem.Provider, XREnvironmentProbe, AREnvironmentProbe>.GetPrefab()
    ARTrackableManager<XREnvironmentProbeSubsystem, XREnvironmentProbeSubsystemDescriptor, XREnvironmentProbeSubsystem.Provider, XREnvironmentProbe, AREnvironmentProbe>.m_Trackables
    ARTrackableManager<XREnvironmentProbeSubsystem, XREnvironmentProbeSubsystemDescriptor, XREnvironmentProbeSubsystem.Provider, XREnvironmentProbe, AREnvironmentProbe>.m_PendingAdds
    ARTrackableManager<XREnvironmentProbeSubsystem, XREnvironmentProbeSubsystemDescriptor, XREnvironmentProbeSubsystem.Provider, XREnvironmentProbe, AREnvironmentProbe>.Awake()
    ARTrackableManager<XREnvironmentProbeSubsystem, XREnvironmentProbeSubsystemDescriptor, XREnvironmentProbeSubsystem.Provider, XREnvironmentProbe, AREnvironmentProbe>.OnEnable()
    ARTrackableManager<XREnvironmentProbeSubsystem, XREnvironmentProbeSubsystemDescriptor, XREnvironmentProbeSubsystem.Provider, XREnvironmentProbe, AREnvironmentProbe>.OnDisable()
    ARTrackableManager<XREnvironmentProbeSubsystem, XREnvironmentProbeSubsystemDescriptor, XREnvironmentProbeSubsystem.Provider, XREnvironmentProbe, AREnvironmentProbe>.CanBeAddedToSubsystem(AREnvironmentProbe)
    ARTrackableManager<XREnvironmentProbeSubsystem, XREnvironmentProbeSubsystemDescriptor, XREnvironmentProbeSubsystem.Provider, XREnvironmentProbe, AREnvironmentProbe>.Update()
    ARTrackableManager<XREnvironmentProbeSubsystem, XREnvironmentProbeSubsystemDescriptor, XREnvironmentProbeSubsystem.Provider, XREnvironmentProbe, AREnvironmentProbe>.OnTrackablesChanged(List<AREnvironmentProbe>, List<AREnvironmentProbe>, List<AREnvironmentProbe>)
    ARTrackableManager<XREnvironmentProbeSubsystem, XREnvironmentProbeSubsystemDescriptor, XREnvironmentProbeSubsystem.Provider, XREnvironmentProbe, AREnvironmentProbe>.OnCreateTrackable(AREnvironmentProbe)
    ARTrackableManager<XREnvironmentProbeSubsystem, XREnvironmentProbeSubsystemDescriptor, XREnvironmentProbeSubsystem.Provider, XREnvironmentProbe, AREnvironmentProbe>.OnAfterSetSessionRelativeData(AREnvironmentProbe, XREnvironmentProbe)
    ARTrackableManager<XREnvironmentProbeSubsystem, XREnvironmentProbeSubsystemDescriptor, XREnvironmentProbeSubsystem.Provider, XREnvironmentProbe, AREnvironmentProbe>.CreateTrackableImmediate(XREnvironmentProbe)
    ARTrackableManager<XREnvironmentProbeSubsystem, XREnvironmentProbeSubsystemDescriptor, XREnvironmentProbeSubsystem.Provider, XREnvironmentProbe, AREnvironmentProbe>.DestroyPendingTrackable(TrackableId)
    ARTrackableManager<XREnvironmentProbeSubsystem, XREnvironmentProbeSubsystemDescriptor, XREnvironmentProbeSubsystem.Provider, XREnvironmentProbe, AREnvironmentProbe>.CreateTrackableFromExisting(AREnvironmentProbe, XREnvironmentProbe)
    SubsystemLifecycleManager<XREnvironmentProbeSubsystem, XREnvironmentProbeSubsystemDescriptor, XREnvironmentProbeSubsystem.Provider>.subsystem
    SubsystemLifecycleManager<XREnvironmentProbeSubsystem, XREnvironmentProbeSubsystemDescriptor, XREnvironmentProbeSubsystem.Provider>.descriptor
    SubsystemLifecycleManager<XREnvironmentProbeSubsystem, XREnvironmentProbeSubsystemDescriptor, XREnvironmentProbeSubsystem.Provider>.GetActiveSubsystemInstance()
    SubsystemLifecycleManager<XREnvironmentProbeSubsystem, XREnvironmentProbeSubsystemDescriptor, XREnvironmentProbeSubsystem.Provider>.EnsureSubsystemInstanceSet()
    SubsystemLifecycleManager<XREnvironmentProbeSubsystem, XREnvironmentProbeSubsystemDescriptor, XREnvironmentProbeSubsystem.Provider>.OnEnable()
    SubsystemLifecycleManager<XREnvironmentProbeSubsystem, XREnvironmentProbeSubsystemDescriptor, XREnvironmentProbeSubsystem.Provider>.OnDisable()
    SubsystemLifecycleManager<XREnvironmentProbeSubsystem, XREnvironmentProbeSubsystemDescriptor, XREnvironmentProbeSubsystem.Provider>.OnDestroy()
    SubsystemLifecycleManager<XREnvironmentProbeSubsystem, XREnvironmentProbeSubsystemDescriptor, XREnvironmentProbeSubsystem.Provider>.OnBeforeStart()
    SubsystemLifecycleManager<XREnvironmentProbeSubsystem, XREnvironmentProbeSubsystemDescriptor, XREnvironmentProbeSubsystem.Provider>.OnAfterStart()
    UnityEngine.MonoBehaviour.IsInvoking()
    UnityEngine.MonoBehaviour.CancelInvoke()
    UnityEngine.MonoBehaviour.Invoke(System.String, System.Single)
    UnityEngine.MonoBehaviour.InvokeRepeating(System.String, System.Single, System.Single)
    UnityEngine.MonoBehaviour.CancelInvoke(System.String)
    UnityEngine.MonoBehaviour.IsInvoking(System.String)
    UnityEngine.MonoBehaviour.StartCoroutine(System.String)
    UnityEngine.MonoBehaviour.StartCoroutine(System.String, System.Object)
    UnityEngine.MonoBehaviour.StartCoroutine(System.Collections.IEnumerator)
    UnityEngine.MonoBehaviour.StartCoroutine_Auto(System.Collections.IEnumerator)
    UnityEngine.MonoBehaviour.StopCoroutine(System.Collections.IEnumerator)
    UnityEngine.MonoBehaviour.StopCoroutine(UnityEngine.Coroutine)
    UnityEngine.MonoBehaviour.StopCoroutine(System.String)
    UnityEngine.MonoBehaviour.StopAllCoroutines()
    UnityEngine.MonoBehaviour.print(System.Object)
    UnityEngine.MonoBehaviour.useGUILayout
    UnityEngine.MonoBehaviour.runInEditMode
    UnityEngine.Behaviour.enabled
    UnityEngine.Behaviour.isActiveAndEnabled
    UnityEngine.Component.GetComponent(System.Type)
    UnityEngine.Component.GetComponent<T>()
    UnityEngine.Component.TryGetComponent(System.Type, UnityEngine.Component)
    UnityEngine.Component.TryGetComponent<T>(T)
    UnityEngine.Component.GetComponent(System.String)
    UnityEngine.Component.GetComponentInChildren(System.Type, System.Boolean)
    UnityEngine.Component.GetComponentInChildren(System.Type)
    UnityEngine.Component.GetComponentInChildren<T>(System.Boolean)
    UnityEngine.Component.GetComponentInChildren<T>()
    UnityEngine.Component.GetComponentsInChildren(System.Type, System.Boolean)
    UnityEngine.Component.GetComponentsInChildren(System.Type)
    UnityEngine.Component.GetComponentsInChildren<T>(System.Boolean)
    UnityEngine.Component.GetComponentsInChildren<T>(System.Boolean, System.Collections.Generic.List<T>)
    UnityEngine.Component.GetComponentsInChildren<T>()
    UnityEngine.Component.GetComponentsInChildren<T>(System.Collections.Generic.List<T>)
    UnityEngine.Component.GetComponentInParent(System.Type, System.Boolean)
    UnityEngine.Component.GetComponentInParent(System.Type)
    UnityEngine.Component.GetComponentInParent<T>(System.Boolean)
    UnityEngine.Component.GetComponentInParent<T>()
    UnityEngine.Component.GetComponentsInParent(System.Type, System.Boolean)
    UnityEngine.Component.GetComponentsInParent(System.Type)
    UnityEngine.Component.GetComponentsInParent<T>(System.Boolean)
    UnityEngine.Component.GetComponentsInParent<T>(System.Boolean, System.Collections.Generic.List<T>)
    UnityEngine.Component.GetComponentsInParent<T>()
    UnityEngine.Component.GetComponents(System.Type)
    UnityEngine.Component.GetComponents(System.Type, System.Collections.Generic.List<UnityEngine.Component>)
    UnityEngine.Component.GetComponents<T>(System.Collections.Generic.List<T>)
    UnityEngine.Component.GetComponents<T>()
    UnityEngine.Component.CompareTag(System.String)
    UnityEngine.Component.SendMessageUpwards(System.String, System.Object, UnityEngine.SendMessageOptions)
    UnityEngine.Component.SendMessageUpwards(System.String, System.Object)
    UnityEngine.Component.SendMessageUpwards(System.String)
    UnityEngine.Component.SendMessageUpwards(System.String, UnityEngine.SendMessageOptions)
    UnityEngine.Component.SendMessage(System.String, System.Object)
    UnityEngine.Component.SendMessage(System.String)
    UnityEngine.Component.SendMessage(System.String, System.Object, UnityEngine.SendMessageOptions)
    UnityEngine.Component.SendMessage(System.String, UnityEngine.SendMessageOptions)
    UnityEngine.Component.BroadcastMessage(System.String, System.Object, UnityEngine.SendMessageOptions)
    UnityEngine.Component.BroadcastMessage(System.String, System.Object)
    UnityEngine.Component.BroadcastMessage(System.String)
    UnityEngine.Component.BroadcastMessage(System.String, UnityEngine.SendMessageOptions)
    UnityEngine.Component.transform
    UnityEngine.Component.gameObject
    UnityEngine.Component.tag
    UnityEngine.Object.GetInstanceID()
    UnityEngine.Object.GetHashCode()
    UnityEngine.Object.Equals(System.Object)
    UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Vector3, UnityEngine.Quaternion)
    UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Vector3, UnityEngine.Quaternion, UnityEngine.Transform)
    UnityEngine.Object.Instantiate(UnityEngine.Object)
    UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Transform)
    UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Transform, System.Boolean)
    UnityEngine.Object.Instantiate<T>(T)
    UnityEngine.Object.Instantiate<T>(T, UnityEngine.Vector3, UnityEngine.Quaternion)
    UnityEngine.Object.Instantiate<T>(T, UnityEngine.Vector3, UnityEngine.Quaternion, UnityEngine.Transform)
    UnityEngine.Object.Instantiate<T>(T, UnityEngine.Transform)
    UnityEngine.Object.Instantiate<T>(T, UnityEngine.Transform, System.Boolean)
    UnityEngine.Object.Destroy(UnityEngine.Object, System.Single)
    UnityEngine.Object.Destroy(UnityEngine.Object)
    UnityEngine.Object.DestroyImmediate(UnityEngine.Object, System.Boolean)
    UnityEngine.Object.DestroyImmediate(UnityEngine.Object)
    UnityEngine.Object.FindObjectsOfType(System.Type)
    UnityEngine.Object.FindObjectsOfType(System.Type, System.Boolean)
    UnityEngine.Object.DontDestroyOnLoad(UnityEngine.Object)
    UnityEngine.Object.DestroyObject(UnityEngine.Object, System.Single)
    UnityEngine.Object.DestroyObject(UnityEngine.Object)
    UnityEngine.Object.FindSceneObjectsOfType(System.Type)
    UnityEngine.Object.FindObjectsOfTypeIncludingAssets(System.Type)
    UnityEngine.Object.FindObjectsOfType<T>()
    UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
    UnityEngine.Object.FindObjectOfType<T>()
    UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
    UnityEngine.Object.FindObjectsOfTypeAll(System.Type)
    UnityEngine.Object.FindObjectOfType(System.Type)
    UnityEngine.Object.FindObjectOfType(System.Type, System.Boolean)
    UnityEngine.Object.ToString()
    UnityEngine.Object.name
    UnityEngine.Object.hideFlags
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.XR.ARFoundation
    Syntax
    [DisallowMultipleComponent]
    [DefaultExecutionOrder(-2147483647)]
    public sealed class AREnvironmentProbeManager : ARTrackableManager<XREnvironmentProbeSubsystem, XREnvironmentProbeSubsystemDescriptor, XREnvironmentProbeSubsystem.Provider, XREnvironmentProbe, AREnvironmentProbe>

    Properties

    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.

    Declaration
    [Obsolete("Use automaticPlacementRequested or automaticPlacementEnabled instead. (2020-01-16)")]
    public bool automaticPlacement { get; set; }
    Property Value
    Type Description
    Boolean

    true if automatic environment probe placement is enabled. Otherwise, false.

    automaticPlacementEnabled

    true if automatic placement is enabled on the subsystem.

    Declaration
    public bool automaticPlacementEnabled { get; }
    Property Value
    Type Description
    Boolean

    automaticPlacementRequested

    If enabled, requests automatic generation of environment probes for the scene.

    Declaration
    public bool automaticPlacementRequested { get; set; }
    Property Value
    Type Description
    Boolean

    true if automatic environment probe placement is requested. Otherwise, false.

    debugPrefab

    Specifies a debug Prefab that will be attached to all environment probes.

    Declaration
    public GameObject debugPrefab { get; set; }
    Property Value
    Type Description
    UnityEngine.GameObject

    A debug Prefab that will be attached to all environment probes.

    Remarks

    Setting a debug Prefab allows for these environment probes to be more readily visualized but is not required for normal operation of this manager. This script will automatically create reflection probes for all environment probes reported by the XREnvironmentProbeSubsystem.

    environmentTextureFilterMode

    Specifies the texture filter mode to be used with the environment texture.

    Declaration
    public FilterMode environmentTextureFilterMode { get; set; }
    Property Value
    Type Description
    UnityEngine.FilterMode

    The texture filter mode to be used with the environment texture.

    environmentTextureHDR

    Specifies whether the environment textures should be returned as HDR textures.

    Declaration
    [Obsolete("Use environmentTextureHDRRequested or environmentTextureHDREnabled instead. (2020-01-16)")]
    public bool environmentTextureHDR { get; set; }
    Property Value
    Type Description
    Boolean

    true if the environment textures should be returned as HDR textures. Otherwise, false.

    environmentTextureHDREnabled

    Queries whether environment textures will be provided with high dynamic range.

    Declaration
    public bool environmentTextureHDREnabled { get; }
    Property Value
    Type Description
    Boolean

    environmentTextureHDRRequested

    Get or set whether high dynamic range environment textures are requested.

    Declaration
    public bool environmentTextureHDRRequested { get; set; }
    Property Value
    Type Description
    Boolean

    gameObjectName

    The name of the GameObject for each instantiated AREnvironmentProbe.

    Declaration
    protected override string gameObjectName { get; }
    Property Value
    Type Description
    String
    Overrides
    UnityEngine.XR.ARFoundation.ARTrackableManager<UnityEngine.XR.ARSubsystems.XREnvironmentProbeSubsystem, UnityEngine.XR.ARSubsystems.XREnvironmentProbeSubsystemDescriptor, UnityEngine.XR.ARSubsystems.XREnvironmentProbeSubsystem.Provider, UnityEngine.XR.ARSubsystems.XREnvironmentProbe, UnityEngine.XR.ARFoundation.AREnvironmentProbe>.gameObjectName

    Methods

    AddEnvironmentProbe(Pose, Vector3, Vector3)

    Creates a new environment probe at pose with scale and size if supported by the subsystem. Use the descriptor's supportsManualPlacement property to determine support for this feature. If successful, a new GameObject with an AREnvironmentProbe is created immediately; however, the provider might not report the environment probe as added until a future frame. Check the status of the probe by inspecting its pending property.

    Declaration
    [Obsolete("Add an environment probe using AddComponent<AREnvironmentProbe>(). (2020-10-06)")]
    public AREnvironmentProbe AddEnvironmentProbe(Pose pose, Vector3 scale, Vector3 size)
    Parameters
    Type Name Description
    UnityEngine.Pose pose

    The position and rotation at which to create the new environment probe.

    UnityEngine.Vector3 scale

    The scale of the new environment probe.

    UnityEngine.Vector3 size

    The size (dimensions) of the new environment probe.

    Returns
    Type Description
    AREnvironmentProbe

    A new AREnvironmentProbe if successful, otherwise null.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if this manager is not enabled

    InvalidOperationException

    Thrown if this manager has no subsystem.

    NotSupportedException

    Thrown if manual placement is not supported by this subsystem. Check for support on the descriptor's supportsManualPlacement property.

    GetEnvironmentProbe(TrackableId)

    Attempts to find the environment probe matching the trackable ID currently in the scene.

    Declaration
    public AREnvironmentProbe GetEnvironmentProbe(TrackableId trackableId)
    Parameters
    Type Name Description
    TrackableId trackableId

    The trackable ID of an environment probe to search for.

    Returns
    Type Description
    AREnvironmentProbe

    Environment probe in the scene matching the trackableId, or null if no matching environment probe is found.

    GetPrefab()

    Gets the prefab that should be instantiated for each AREnvironmentProbe. May be null.

    Declaration
    protected override GameObject GetPrefab()
    Returns
    Type Description
    UnityEngine.GameObject

    The prefab that should be instantiated for each AREnvironmentProbe.

    Overrides
    UnityEngine.XR.ARFoundation.ARTrackableManager<UnityEngine.XR.ARSubsystems.XREnvironmentProbeSubsystem, UnityEngine.XR.ARSubsystems.XREnvironmentProbeSubsystemDescriptor, UnityEngine.XR.ARSubsystems.XREnvironmentProbeSubsystem.Provider, UnityEngine.XR.ARSubsystems.XREnvironmentProbe, UnityEngine.XR.ARFoundation.AREnvironmentProbe>.GetPrefab()

    OnBeforeStart()

    Enables the environment probe functionality by registering listeners for the environment probe events, if the XREnvironmentProbeSubsystem exists, and enabling environment probes in the AR subsystem manager.

    Declaration
    protected override void OnBeforeStart()
    Overrides
    UnityEngine.XR.ARFoundation.SubsystemLifecycleManager<UnityEngine.XR.ARSubsystems.XREnvironmentProbeSubsystem, UnityEngine.XR.ARSubsystems.XREnvironmentProbeSubsystemDescriptor, UnityEngine.XR.ARSubsystems.XREnvironmentProbeSubsystem.Provider>.OnBeforeStart()

    OnCreateTrackable(AREnvironmentProbe)

    Invoked when an AREnvironmentProbe is created.

    Declaration
    protected override void OnCreateTrackable(AREnvironmentProbe probe)
    Parameters
    Type Name Description
    AREnvironmentProbe probe

    The AREnvironmentProbe that was just created.

    Overrides
    UnityEngine.XR.ARFoundation.ARTrackableManager<UnityEngine.XR.ARSubsystems.XREnvironmentProbeSubsystem, UnityEngine.XR.ARSubsystems.XREnvironmentProbeSubsystemDescriptor, UnityEngine.XR.ARSubsystems.XREnvironmentProbeSubsystem.Provider, UnityEngine.XR.ARSubsystems.XREnvironmentProbe, UnityEngine.XR.ARFoundation.AREnvironmentProbe>.OnCreateTrackable(UnityEngine.XR.ARFoundation.AREnvironmentProbe)

    OnDestroy()

    Destroys any game objects created by this environment probe manager for each environment probe, and clears the mapping of environment probes.

    Declaration
    protected override void OnDestroy()
    Overrides
    UnityEngine.XR.ARFoundation.SubsystemLifecycleManager<UnityEngine.XR.ARSubsystems.XREnvironmentProbeSubsystem, UnityEngine.XR.ARSubsystems.XREnvironmentProbeSubsystemDescriptor, UnityEngine.XR.ARSubsystems.XREnvironmentProbeSubsystem.Provider>.OnDestroy()

    OnTrackablesChanged(List<AREnvironmentProbe>, List<AREnvironmentProbe>, List<AREnvironmentProbe>)

    Invoked when the base class detects trackable changes.

    Declaration
    protected override void OnTrackablesChanged(List<AREnvironmentProbe> added, List<AREnvironmentProbe> updated, List<AREnvironmentProbe> removed)
    Parameters
    Type Name Description
    List<AREnvironmentProbe> added

    The list of added AREnvironmentProbe.

    List<AREnvironmentProbe> updated

    The list of updated AREnvironmentProbe.

    List<AREnvironmentProbe> removed

    The list of removed AREnvironmentProbe.

    Overrides
    UnityEngine.XR.ARFoundation.ARTrackableManager<UnityEngine.XR.ARSubsystems.XREnvironmentProbeSubsystem, UnityEngine.XR.ARSubsystems.XREnvironmentProbeSubsystemDescriptor, UnityEngine.XR.ARSubsystems.XREnvironmentProbeSubsystem.Provider, UnityEngine.XR.ARSubsystems.XREnvironmentProbe, UnityEngine.XR.ARFoundation.AREnvironmentProbe>.OnTrackablesChanged(System.Collections.Generic.List<UnityEngine.XR.ARFoundation.AREnvironmentProbe>, System.Collections.Generic.List<UnityEngine.XR.ARFoundation.AREnvironmentProbe>, System.Collections.Generic.List<UnityEngine.XR.ARFoundation.AREnvironmentProbe>)

    RemoveEnvironmentProbe(AREnvironmentProbe)

    Remove an existing environment probe. Support for this feature is provider-specific. Check for support with the descriptor's supportsRemovalOfManual and supportsRemovalOfAutomatic properties.

    Declaration
    [Obsolete("Call Destroy() on the AREnvironmentProbe component to remove it. (2020-10-06)")]
    public bool RemoveEnvironmentProbe(AREnvironmentProbe probe)
    Parameters
    Type Name Description
    AREnvironmentProbe probe

    The environment probe to remove

    Returns
    Type Description
    Boolean

    true if the environment probe was removed, otherwise false.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if this manager is not enabled.

    InvalidOperationException

    Thrown if subsystem is null.

    ArgumentNullException

    Thrown if probe is null.

    InvalidOperationException

    Thrown if the environment probe was manually placed, but removal of manually placed probes is not supported. You can check for this case with placementType and the descriptor's 'supportsRemovalOfManual` property.

    InvalidOperationException

    Thrown if the environment probe was automatically placed, but removal of automatically placed probes is not supported. You can check for this case with placementType and the descriptor's supportsRemovalOfAutomatic property.

    Events

    environmentProbesChanged

    Invoked once per frame with lists of environment probes that have been added, updated, and removed since the last frame.

    Declaration
    public event Action<AREnvironmentProbesChangedEvent> environmentProbesChanged
    Event Type
    Type Description
    Action<AREnvironmentProbesChangedEvent>
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023