Class LightEstimationExtensions
Extension methods for the Light
Inherited Members
Namespace: UnityEngine .XR.ARFoundation
Assembly: Unity.XR.ARFoundation.dll
Syntax
public static class LightEstimationExtensions
Methods
ToFeature(LightEstimation)
Converts a LightFeature
.
Declaration
public static Feature ToFeature(this LightEstimation self)
Parameters
Type | Name | Description |
---|---|---|
Light |
self | The Light |
Returns
Type | Description |
---|---|
Feature | A |
ToLightEstimation(Feature)
Converts a Feature
to a Lightself
.
Declaration
public static LightEstimation ToLightEstimation(this Feature self)
Parameters
Type | Name | Description |
---|---|---|
Feature | self | The |
Returns
Type | Description |
---|---|
Light |
A Light |
ToLightEstimation(LightEstimationMode)
Convert the deprecated LightEstimationMode
to Light
Declaration
[Obsolete("LightEstimationMode is deprecated. (2023-02-22)")]
public static LightEstimation ToLightEstimation(this LightEstimationMode mode)
Parameters
Type | Name | Description |
---|---|---|
Light |
mode | The |
Returns
Type | Description |
---|---|
Light |
The Light |
ToLightEstimationMode(LightEstimation)
Converts a LightLightEstimationMode
.
Declaration
[Obsolete("LightEstimationMode is deprecated. (2023-02-22)")]
public static LightEstimationMode ToLightEstimationMode(this LightEstimation self)
Parameters
Type | Name | Description |
---|---|---|
Light |
self | The Light |
Returns
Type | Description |
---|---|
Light |
A |