docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class LightEstimationExtensions

    Extension methods for the LightEstimation enum.

    Inheritance
    object
    LightEstimationExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.XR.ARFoundation
    Assembly: Unity.XR.ARFoundation.dll
    Syntax
    public static class LightEstimationExtensions

    Methods

    ToFeature(LightEstimation)

    Converts a LightEstimation to a Feature.

    Declaration
    public static Feature ToFeature(this LightEstimation self)
    Parameters
    Type Name Description
    LightEstimation self

    The LightEstimation being extended.

    Returns
    Type Description
    Feature

    A Feature representation of the LightEstimation with the relevant bits enabled.

    ToLightEstimation(Feature)

    Converts a Feature to a LightEstimation enum by extracting the relevant light estimation bits from self.

    Declaration
    public static LightEstimation ToLightEstimation(this Feature self)
    Parameters
    Type Name Description
    Feature self

    The Feature being extended.

    Returns
    Type Description
    LightEstimation

    A LightEstimation representation of the relevant Feature bits.

    ToLightEstimation(LightEstimationMode)

    Convert the deprecated LightEstimationMode to LightEstimation.

    Declaration
    [Obsolete("LightEstimationMode is deprecated. (2023-02-22)")]
    public static LightEstimation ToLightEstimation(this LightEstimationMode mode)
    Parameters
    Type Name Description
    LightEstimationMode mode

    The LightEstimationMode to convert.

    Returns
    Type Description
    LightEstimation

    The LightEstimation representation of the LightEstimationMode.

    ToLightEstimationMode(LightEstimation)

    Converts a LightEstimation to the deprecated LightEstimationMode.

    Declaration
    [Obsolete("LightEstimationMode is deprecated. (2023-02-22)")]
    public static LightEstimationMode ToLightEstimationMode(this LightEstimation self)
    Parameters
    Type Name Description
    LightEstimation self

    The LightEstimation being converted.

    Returns
    Type Description
    LightEstimationMode

    A LightEstimationMode representation of the LightEstimation.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)