当图像目标丢失vuforia- Hololens时,Gameobject不破坏 [英] Gameobject not destroying when image target lost vuforia- Hololens

查看:265
本文介绍了当图像目标丢失vuforia- Hololens时,Gameobject不破坏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发具有vuforia和统一的hololens的AR应用程序.我有一些画布组件,当丢失图像目标时必须将其销毁.我使用defaulttrackableeventhandler通过gameobject.setactive(false);销毁了那些对象.在跟踪丢失的功能.相同的应用程序可与android手机正常运行,但不适用于hololens 当为UWP构建时,即使在游戏模式下,游戏对象也不会被破坏.它破坏了两次,并在第三次保持静止,当用hololens观看时,画布甚至不会失灵.对此有任何解决办法吗?

Im developing an AR application with vuforia and unity for hololens . I have some canvas components which have to be destroyed when image target is lost . Im using defaulttrackableeventhandler to destroy those object with gameobject.setactive(false); in tracking lost function. The very same app works well with android phone but not with hololens When built for UWP , the gameobject is not destroying even in play mode. Its destroying twice and stays static on the third time and when viewed in hololens , the canvas is not even disabling . Any fix for this ?

推荐答案

解决了.. 事实证明 extended tracking 是默认打开的,必须将其关闭.

Solved it .. Turns out extended tracking was switched on by default , had to turn this off .

这篇关于当图像目标丢失vuforia- Hololens时,Gameobject不破坏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆