unity3d+vive+vrtk:手柄碰撞到ui触发响应

这里写图片描述
在canvas下挂脚本

        [Tooltip("Determines if a UI Click action should happen when a UI Pointer game object collides with this canvas.")]
        public bool clickOnPointerCollision = false;
        [Tooltip("Determines if a UI Pointer will be auto activated if a UI Pointer game object comes within the given distance of this canvas. If a value of `0` is given then no auto activation will occur.")]
        public float autoActivateWithinDistance = 0f;

猜你喜欢

转载自blog.csdn.net/luoyikun/article/details/79867886
今日推荐