C# Класс UnityEngine.EventSystems.PointerInputModule

A BaseInputModule for pointer input.

Наследование: BaseInputModule
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
m_PointerData PointerEventData>.Dictionary

Открытые методы

Метод Описание
IsPointerOverGameObject ( int pointerId ) : bool
ToString ( ) : string

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
ShouldStartDrag ( Vector2 pressPos, Vector2 currentPos, float threshold, bool useDragThreshold ) : bool

Описание методов

ClearSelection() защищенный Метод

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

protected ClearSelection ( ) : void
Результат void

CopyFromTo() защищенный Метод

Copy one PointerEventData to another.

protected CopyFromTo ( PointerEventData from, PointerEventData to ) : void
from PointerEventData
to PointerEventData
Результат void

DeselectIfSelectionChanged() защищенный Метод

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.
Результат void

GetLastPointerEventData() защищенный Метод

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

protected GetLastPointerEventData ( int id ) : PointerEventData
id int
Результат PointerEventData

GetMousePointerEventData() защищенный Метод

Return the current MouseState.

protected GetMousePointerEventData ( ) : MouseState
Результат MouseState

GetMousePointerEventData() защищенный Метод

Return the current MouseState.

protected GetMousePointerEventData ( int id ) : MouseState
id int
Результат MouseState

GetPointerData() защищенный Метод

protected GetPointerData ( int id, PointerEventData &data, bool create ) : bool
id int
data PointerEventData
create bool
Результат bool

GetTouchPointerEventData() защищенный Метод

protected GetTouchPointerEventData ( Touch input, bool &pressed, bool &released ) : PointerEventData
input Touch
pressed bool
released bool
Результат PointerEventData

IsPointerOverGameObject() публичный Метод

public IsPointerOverGameObject ( int pointerId ) : bool
pointerId int
Результат bool

PointerInputModule() защищенный Метод

protected PointerInputModule ( ) : System
Результат System

ProcessDrag() защищенный Метод

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

protected ProcessDrag ( PointerEventData pointerEvent ) : void
pointerEvent PointerEventData
Результат void

ProcessMove() защищенный Метод

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

protected ProcessMove ( PointerEventData pointerEvent ) : void
pointerEvent PointerEventData
Результат void

RemovePointerData() защищенный Метод

Remove the PointerEventData from the cache.

protected RemovePointerData ( PointerEventData data ) : void
data PointerEventData
Результат void

StateForMouseButton() защищенный Метод

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

protected StateForMouseButton ( int buttonId ) : PointerEventData.FramePressState
buttonId int Mouse Button id.
Результат PointerEventData.FramePressState

ToString() публичный Метод

public ToString ( ) : string
Результат string

Описание свойств

m_PointerData защищенное свойство

protected Dictionary m_PointerData
Результат PointerEventData>.Dictionary