docs.unity3d.com
    目次を表示する/隠す

    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.

    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)