예제 #1
0
        public void detachAnnotation(MouseTrackerAnnotation annotation)
        {
            _TrackedAnnotation trackedAnnotation = this._findAnnotation(annotation);

            foreach (int deviceId in trackedAnnotation.activeDevices)
            {
                annotation.onExit(PointerExitEvent.fromHoverEvent((PointerHoverEvent)this._lastMouseEvent[deviceId]));
            }

            this._trackedAnnotations.Remove(annotation);
        }
예제 #2
0
        public void detachAnnotation(MouseTrackerAnnotation annotation)
        {
            _TrackedAnnotation trackedAnnotation = this._findAnnotation(annotation);

            foreach (int deviceId in trackedAnnotation.activeDevices)
            {
                if (annotation.onExit != null)
                {
                    annotation.onExit(
                        PointerExitEvent.fromHoverEvent((PointerHoverEvent)this._lastMouseEvent[deviceId]));
                }
#if UNITY_EDITOR
                this.detachDragFromEditorAnnotation(annotation, deviceId);
#endif
            }

            this._trackedAnnotations.Remove(annotation);
        }