C# 如何订阅用户体验活动
我目前正在使用UxExceptionListener.cs类订阅Tango异常,以确保录制帧时处于有效状态C# 如何订阅用户体验活动,c#,unity3d,google-project-tango,C#,Unity3d,Google Project Tango,我目前正在使用UxExceptionListener.cs类订阅Tango异常,以确保录制帧时处于有效状态 void Start () { UxExceptionListener UX = UxExceptionListener.GetInstance; UX.RegisterOnCamerUnderExposed(OnCameraUnderExposed); } void OnCameraUnderExposed (string exposure) { Debug
void Start ()
{
UxExceptionListener UX = UxExceptionListener.GetInstance;
UX.RegisterOnCamerUnderExposed(OnCameraUnderExposed);
}
void OnCameraUnderExposed (string exposure)
{
Debug.Log("My camera is underexposed " + exposure);
}
但是,这会禁用深度。有人知道正确的方法吗?这与unity3d有关吗?是的,它正在Unity中运行。您是否也可以共享事件处理程序代码?单凭这两条线很难说会发生什么。此外,请在运行应用程序时执行“adb logcat”,并将其共享。这将使调试问题变得更容易。关闭循环。。。在我将SDK升级到最新版本后,问题就消失了。谢谢你的意见。