浏览代码

minor changes

/4.1
Shan Jiang 4 年前
当前提交
87aa4972
共有 2 个文件被更改,包括 8 次插入5 次删除
  1. 11
      Assets/Scripts/BasicLightEstimationUI.cs
  2. 2
      Assets/Scripts/HDRLightEstimation.cs

11
Assets/Scripts/BasicLightEstimationUI.cs


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)

2
Assets/Scripts/HDRLightEstimation.cs


}
else if (arrow)
{
arrow?.gameObject.SetActive(false);
arrow.gameObject.SetActive(false);
mainLightDirection = null;
}

正在加载...
取消
保存