C# Class UnityEngine.EventSystems.PointerInputModule

A BaseInputModule for pointer input.

Inheritance: BaseInputModule
ファイルを表示 Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Protected Properties

Property Type Description
m_PointerData PointerEventData>.Dictionary

Public Methods

Method Description
IsPointerOverGameObject ( int pointerId ) : bool
ToString ( ) : string

Protected Methods

Method Description
ClearSelection ( ) : void

Clear all pointers and deselect any selected objects in the EventSystem.

CopyFromTo ( PointerEventData from, PointerEventData to ) : void

Copy one PointerEventData to another.

DeselectIfSelectionChanged ( GameObject currentOverGo, BaseEventData pointerEvent ) : void

Deselect the current selected GameObject if the currently pointed-at GameObject is different.

GetLastPointerEventData ( int id ) : PointerEventData

Return the last PointerEventData for the given touch / mouse id.

GetMousePointerEventData ( ) : MouseState

Return the current MouseState.

GetMousePointerEventData ( int id ) : MouseState

Return the current MouseState.

GetPointerData ( int id, PointerEventData &data, bool create ) : bool
GetTouchPointerEventData ( Touch input, bool &pressed, bool &released ) : PointerEventData
PointerInputModule ( ) : System
ProcessDrag ( PointerEventData pointerEvent ) : void

Process the drag for the current frame with the given pointer event.

ProcessMove ( PointerEventData pointerEvent ) : void

Process movement for the current frame with the given pointer event.

RemovePointerData ( PointerEventData data ) : void

Remove the PointerEventData from the cache.

StateForMouseButton ( int buttonId ) : PointerEventData.FramePressState

Given a mouse button return the current state for the frame.

Private Methods

Method Description
ShouldStartDrag ( Vector2 pressPos, Vector2 currentPos, float threshold, bool useDragThreshold ) : bool

Method Details

ClearSelection() protected method

Clear all pointers and deselect any selected objects in the EventSystem.

protected ClearSelection ( ) : void
return void

CopyFromTo() protected method

Copy one PointerEventData to another.

protected CopyFromTo ( PointerEventData from, PointerEventData to ) : void
from PointerEventData
to PointerEventData
return void

DeselectIfSelectionChanged() protected method

Deselect the current selected GameObject if the currently pointed-at GameObject is different.

protected DeselectIfSelectionChanged ( GameObject currentOverGo, BaseEventData pointerEvent ) : void
currentOverGo GameObject The GameObject the pointer is currently over.
pointerEvent BaseEventData Current event data.
return void

GetLastPointerEventData() protected method

Return the last PointerEventData for the given touch / mouse id.

protected GetLastPointerEventData ( int id ) : PointerEventData
id int
return PointerEventData

GetMousePointerEventData() protected method

Return the current MouseState.

protected GetMousePointerEventData ( ) : MouseState
return MouseState

GetMousePointerEventData() protected method

Return the current MouseState.

protected GetMousePointerEventData ( int id ) : MouseState
id int
return MouseState

GetPointerData() protected method

protected GetPointerData ( int id, PointerEventData &data, bool create ) : bool
id int
data PointerEventData
create bool
return bool

GetTouchPointerEventData() protected method

protected GetTouchPointerEventData ( Touch input, bool &pressed, bool &released ) : PointerEventData
input Touch
pressed bool
released bool
return PointerEventData

IsPointerOverGameObject() public method

public IsPointerOverGameObject ( int pointerId ) : bool
pointerId int
return bool

PointerInputModule() protected method

protected PointerInputModule ( ) : System
return System

ProcessDrag() protected method

Process the drag for the current frame with the given pointer event.

protected ProcessDrag ( PointerEventData pointerEvent ) : void
pointerEvent PointerEventData
return void

ProcessMove() protected method

Process movement for the current frame with the given pointer event.

protected ProcessMove ( PointerEventData pointerEvent ) : void
pointerEvent PointerEventData
return void

RemovePointerData() protected method

Remove the PointerEventData from the cache.

protected RemovePointerData ( PointerEventData data ) : void
data PointerEventData
return void

StateForMouseButton() protected method

Given a mouse button return the current state for the frame.

protected StateForMouseButton ( int buttonId ) : PointerEventData.FramePressState
buttonId int Mouse Button id.
return PointerEventData.FramePressState

ToString() public method

public ToString ( ) : string
return string

Property Details

m_PointerData protected_oe property

protected Dictionary m_PointerData
return PointerEventData>.Dictionary