/// <summary> /// Unsubscribe to the lightEstimationUpdated event, which is invoked when the light estimation changes /// </summary> /// <param name="obj">The functionality subscriber</param> /// <param name="lightEstimationUpdated">An action which was previously subscribed to lightEstimationUpdated</param> public static void UnsubscribeLightEstimationUpdated(this IUsesLightEstimation obj, Action <MRLightEstimation> lightEstimationUpdated) { obj.provider.lightEstimationUpdated -= lightEstimationUpdated; }
/// <summary> /// Try to get the light estimation data /// </summary> /// <param name="obj">The functionality subscriber</param> /// <param name="lightEstimation">The light estimation data</param> /// <returns>True if the operation succeeded; false if the data is not available or the feature is not supported</returns> public static bool TryGetLightEstimation(this IUsesLightEstimation obj, out MRLightEstimation lightEstimation) { return(obj.provider.TryGetLightEstimation(out lightEstimation)); }