docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class UsesLightEstimationMethods

    Extension methods for light estimation users

    Inheritance
    object
    UsesLightEstimationMethods
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.MARS.Providers
    Assembly: Unity.MARS.Interfaces.dll
    Syntax
    public static class UsesLightEstimationMethods

    Methods

    SubscribeLightEstimationUpdated(IUsesLightEstimation, Action<MRLightEstimation>)

    Subscribe to the lightEstimationUpdated event, which is invoked when the light estimation changes

    Declaration
    public static void SubscribeLightEstimationUpdated(this IUsesLightEstimation obj, Action<MRLightEstimation> lightEstimationUpdated)
    Parameters
    Type Name Description
    IUsesLightEstimation obj

    The functionality subscriber

    Action<MRLightEstimation> lightEstimationUpdated

    The action which will be invoked when light estimation changes

    TryGetLightEstimation(IUsesLightEstimation, out MRLightEstimation)

    Try to get the light estimation data

    Declaration
    public static bool TryGetLightEstimation(this IUsesLightEstimation obj, out MRLightEstimation lightEstimation)
    Parameters
    Type Name Description
    IUsesLightEstimation obj

    The functionality subscriber

    MRLightEstimation lightEstimation

    The light estimation data

    Returns
    Type Description
    bool

    True if the operation succeeded; false if the data is not available or the feature is not supported

    UnsubscribeLightEstimationUpdated(IUsesLightEstimation, Action<MRLightEstimation>)

    Unsubscribe to the lightEstimationUpdated event, which is invoked when the light estimation changes

    Declaration
    public static void UnsubscribeLightEstimationUpdated(this IUsesLightEstimation obj, Action<MRLightEstimation> lightEstimationUpdated)
    Parameters
    Type Name Description
    IUsesLightEstimation obj

    The functionality subscriber

    Action<MRLightEstimation> lightEstimationUpdated

    An action which was previously subscribed to lightEstimationUpdated

    In This Article
    Back to top
    Copyright © 2025 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)