C# Class UnityEngine.EventSystems.PointerInputModule

A BaseInputModule for pointer input.

Inheritance: BaseInputModule
Afficher le fichier Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Protected Properties

Свойство Type Description
m_PointerData PointerEventData>.Dictionary

Méthodes publiques

Méthode Description
IsPointerOverGameObject ( int pointerId ) : bool
ToString ( ) : string

Méthodes protégées

Méthode 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

Méthode Description
ShouldStartDrag ( Vector2 pressPos, Vector2 currentPos, float threshold, bool useDragThreshold ) : bool

Method Details

ClearSelection() protected méthode

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

protected ClearSelection ( ) : void
Résultat void

CopyFromTo() protected méthode

Copy one PointerEventData to another.

protected CopyFromTo ( PointerEventData from, PointerEventData to ) : void
from PointerEventData
to PointerEventData
Résultat void

DeselectIfSelectionChanged() protected méthode

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.
Résultat void

GetLastPointerEventData() protected méthode

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

protected GetLastPointerEventData ( int id ) : PointerEventData
id int
Résultat PointerEventData

GetMousePointerEventData() protected méthode

Return the current MouseState.

protected GetMousePointerEventData ( ) : MouseState
Résultat MouseState

GetMousePointerEventData() protected méthode

Return the current MouseState.

protected GetMousePointerEventData ( int id ) : MouseState
id int
Résultat MouseState

GetPointerData() protected méthode

protected GetPointerData ( int id, PointerEventData &data, bool create ) : bool
id int
data PointerEventData
create bool
Résultat bool

GetTouchPointerEventData() protected méthode

protected GetTouchPointerEventData ( Touch input, bool &pressed, bool &released ) : PointerEventData
input Touch
pressed bool
released bool
Résultat PointerEventData

IsPointerOverGameObject() public méthode

public IsPointerOverGameObject ( int pointerId ) : bool
pointerId int
Résultat bool

PointerInputModule() protected méthode

protected PointerInputModule ( ) : System
Résultat System

ProcessDrag() protected méthode

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

protected ProcessDrag ( PointerEventData pointerEvent ) : void
pointerEvent PointerEventData
Résultat void

ProcessMove() protected méthode

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

protected ProcessMove ( PointerEventData pointerEvent ) : void
pointerEvent PointerEventData
Résultat void

RemovePointerData() protected méthode

Remove the PointerEventData from the cache.

protected RemovePointerData ( PointerEventData data ) : void
data PointerEventData
Résultat void

StateForMouseButton() protected méthode

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

protected StateForMouseButton ( int buttonId ) : PointerEventData.FramePressState
buttonId int Mouse Button id.
Résultat PointerEventData.FramePressState

ToString() public méthode

public ToString ( ) : string
Résultat string

Property Details

m_PointerData protected_oe property

protected Dictionary m_PointerData
Résultat PointerEventData>.Dictionary