docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method TryAddEnvironmentProbe

    TryAddEnvironmentProbe(Pose, Vector3, Vector3, out XREnvironmentProbe)

    Overridden by the provider implementation to manually add an environment probe to the AR session.

    Declaration
    public virtual bool TryAddEnvironmentProbe(Pose pose, Vector3 scale, Vector3 size, out XREnvironmentProbe environmentProbe)
    Parameters
    Type Name Description
    Pose pose

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

    Vector3 scale

    The scale of the new environment probe.

    Vector3 size

    The size (dimensions) of the new environment probe.

    XREnvironmentProbe environmentProbe

    If successful, should be populated with the newly created environment probe.

    Returns
    Type Description
    bool

    true if a new environment probe was created, otherwise false.

    Exceptions
    Type Condition
    NotSupportedException

    Thrown in the default implementation of this method.

    In This Article
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Friday, September 22, 2023