docs.unity3d.com
    Show / Hide Table of Contents

    Class LightEstimationExtensions

    Extension methods for the LightEstimation enum.

    Inheritance
    Object
    LightEstimationExtensions
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.XR.ARFoundation
    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
    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
    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.

    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