Class MouseTracker
Namespace: Unity.UIWidgets.gestures
Syntax
public class MouseTracker
Constructors
MouseTracker(PointerRouter, MouseDetectorAnnotationFinder, Boolean)
Declaration
public MouseTracker(PointerRouter router, MouseDetectorAnnotationFinder annotationFinder, bool inEditorWindow = false)
Parameters
Type | Name | Description |
---|---|---|
PointerRouter | router | |
MouseDetectorAnnotationFinder | annotationFinder | |
Boolean | inEditorWindow |
Fields
_trackedAnnotations
Declaration
public readonly Dictionary<MouseTrackerAnnotation, _TrackedAnnotation> _trackedAnnotations
Field Value
Type | Description |
---|---|
Dictionary<MouseTrackerAnnotation, _TrackedAnnotation> |
annotationFinder
Declaration
public readonly MouseDetectorAnnotationFinder annotationFinder
Field Value
Type | Description |
---|---|
MouseDetectorAnnotationFinder |
Properties
mouseIsConnected
Declaration
public bool mouseIsConnected { get; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
attachAnnotation(MouseTrackerAnnotation)
Declaration
public void attachAnnotation(MouseTrackerAnnotation annotation)
Parameters
Type | Name | Description |
---|---|---|
MouseTrackerAnnotation | annotation |
collectMousePositions()
Declaration
public void collectMousePositions()
detachAnnotation(MouseTrackerAnnotation)
Declaration
public void detachAnnotation(MouseTrackerAnnotation annotation)
Parameters
Type | Name | Description |
---|---|---|
MouseTrackerAnnotation | annotation |