浏览代码

Merge branch 'latest-preview' into light-estimation

/4.1
Shan Jiang 4 年前
当前提交
93127c58
共有 2 个文件被更改,包括 4 次插入3 次删除
  1. 5
      Assets/Scenes/FaceTracking/DisplayFaceInfo.cs
  2. 2
      Assets/Scripts/HDRLightEstimation.cs

5
Assets/Scenes/FaceTracking/DisplayFaceInfo.cs


{
m_FaceManager = GetComponent<ARFaceManager>();
m_Session = GetComponent<ARSession>();
m_CameraManager = GetComponent<ARSessionOrigin>().camera?.GetComponent<ARCameraManager>();
var camera = GetComponent<ARSessionOrigin>().camera;
m_CameraManager = camera ? camera.GetComponent<ARCameraManager>() : null;
}
void OnEnable()

// Detect face tracking with world-facing camera support
var subsystem = m_Session?.subsystem;
var subsystem = m_Session ? m_Session.subsystem : null;
if (subsystem != null)
{
var configs = subsystem.GetConfigurationDescriptors(Allocator.Temp);

2
Assets/Scripts/HDRLightEstimation.cs


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

正在加载...
取消
保存