1. 程式人生 > >unity3d+vive+vrtk:手柄碰撞到ui觸發響應

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;