Class LightEstimationExtensions
Extension methods for the LightEstimation enum.
Inherited Members
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   | 
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   | 
Returns
| Type | Description | 
|---|---|
| LightEstimation | A LightEstimation representation of the relevant   | 
ToLightEstimation(LightEstimationMode)
Convert the deprecated LightEstimationMode to LightEstimation.
Declaration
public static LightEstimation ToLightEstimation(this LightEstimationMode mode)
Parameters
| Type | Name | Description | 
|---|---|---|
| LightEstimationMode | mode | The   | 
Returns
| Type | Description | 
|---|---|
| LightEstimation | The LightEstimation representation of the   | 
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   |