|
|
|
|
|
|
using UnityEngine.UI; |
|
|
|
using System; |
|
|
|
using UnityEngine.UI; |
|
|
|
|
|
|
|
namespace UnityEngine.XR.ARFoundation.Samples |
|
|
|
{ |
|
|
|
|
|
|
{ |
|
|
|
SetUIValue(m_LightEstimation.brightness, ambientIntensityText); |
|
|
|
|
|
|
|
//Display either color temperature or color correction if supported
|
|
|
|
//Display color temperature or color correction if supported
|
|
|
|
else |
|
|
|
else if (m_LightEstimation.colorCorrection != null) |
|
|
|
else |
|
|
|
SetUIValue<float>(null, ambientColorText); |
|
|
|
|
|
|
|
|
|
|
|
void SetUIValue<T>(T? displayValue, Text text) where T : struct |
|
|
|
{ |
|
|
|
if (text != null) |
|
|
|