简体   繁体   English

向下指示器和向上指示器不适用于磁体〜纸板〜统一

[英]On Pointer Down and On Pointer Up won't work with magnet ~Cardboard ~Unity

So currently I'm working with Google Cardboard SDK for Unity. 因此,目前我正在使用Google Cardboard SDK for Unity。 I've been able to do On Pointer Click Using Cardboard magnet and it works fine. 我已经能够使用纸板磁On Pointer Click鼠标,效果很好。 But I couldn't figure out how to do On Pointer Up and On Pointer Down as when I pull down the magnet in the cardboard, it doesn't trigger On Pointer Down and also when I release the magnet it doesn't trigger On Pointer Up . 但是我无法弄清楚如何On Pointer UpOn Pointer Down On Pointer Up ,因为当我拉下纸板中的磁铁时,它不会触发On Pointer Down ,而且当我释放磁铁时也不会触发On Pointer Down On Pointer Up

My question is how to trigger On Pointer Down and On Pointer Up using magnet on Google Cardboard SDK for Unity? 我的问题是如何在Google Cardboard SDK for Unity On Pointer Up使用磁铁触发On Pointer Down On Pointer Up On Pointer DownOn Pointer Up On Pointer Down On Pointer Up

Thank you in advance.. 先感谢您..

You cannot. 你不能。 On pointer up is an event to the specific object (with this script) in the game. 指针向上指向游戏中特定对象(带有此脚本)的事件。

Cardboard button is just touch as fire button, no matter cardboard v1 or v2. 无论是v1还是v2,纸板按钮都像火一样被触摸

If you want to get onpointer like, you can try use ray to get hit or not hit. 如果您想要像onpointer一样,可以尝试使用ray来命中或不命中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM