C# Класс POINTER_INFO, marblemadness

Tracks important information about the status of a pointing device (mouse, finger, arbitrary ray)
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
actionID int
active bool
activeTime float
callerIsControl bool
camera Camera
devicePos Vector3
evt INPUT_EVENT
hitInfo UnityEngine.RaycastHit
id int
inputDelta Vector3
isTap bool
layerMask int
origPos Vector3
prevRay Ray
ray Ray
rayDepth float
targetObj IUIObject
type POINTER_TYPE

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

Метод Описание
Copy ( POINTER_INFO, ptr ) : void
Reset ( int actID ) : void
Reuse ( POINTER_INFO, ptr ) : void

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

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

public Copy ( POINTER_INFO, ptr ) : void
ptr POINTER_INFO,
Результат void

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

public Reset ( int actID ) : void
actID int
Результат void

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

public Reuse ( POINTER_INFO, ptr ) : void
ptr POINTER_INFO,
Результат void

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

actionID публичное свойство

ID of the current action. A new action ID is assigned each time the pointer goes "active" anew.
public int actionID
Результат int

active публичное свойство

A touch is currently active (finger is still on the pad, mouse button is held, etc).
public bool active
Результат bool

activeTime публичное свойство

The time (based on Time.time) that the pointer went active. This value is 0 when the pointer is not active.
public float activeTime
Результат float

callerIsControl публичное свойство

Signals whether the caller that is sending this pointer info is a control or not.
public bool callerIsControl
Результат bool

camera публичное свойство

The camera with which this pointer was used. This indicates which camera generated the ray information.
public Camera camera
Результат Camera

devicePos публичное свойство

Current position of the input device (mouse, finger, whatever). When using a mouse or touchpad, this is the screen position. When using a ray, this is the position of the pointer in world space as projected from the camera a distance specified by the UIManager's "Ray Depth" value.
public Vector3 devicePos
Результат Vector3

evt публичное свойство

The type of event the state of this pointer has generated
public INPUT_EVENT evt
Результат INPUT_EVENT

hitInfo публичное свойство

Struct that holds info about the raycast hit (if any) against a UI element.
public RaycastHit,UnityEngine hitInfo
Результат UnityEngine.RaycastHit

id публичное свойство

ID of the pointer.
public int id
Результат int

inputDelta публичное свойство

Change in the devicePos since the last polling.
public Vector3 inputDelta
Результат Vector3

isTap публичное свойство

Gets set to false after a touch/click moves beyond the drag threshold.
public bool isTap
Результат bool

layerMask публичное свойство

The layer mask for this pointer.
public int layerMask
Результат int

origPos публичное свойство

Original position where the touch/click began. When using a mouse or touchpad, this is the screen position. When using a ray, this is the position of the pointer in world space as projected from the camera a distance specified by the UIManager's "Ray Depth" value.
public Vector3 origPos
Результат Vector3

prevRay публичное свойство

The ray from the previous polling.
public Ray prevRay
Результат Ray

ray публичное свойство

The ray projecting into the world for this pointing device.
public Ray ray
Результат Ray

rayDepth публичное свойство

Depth into the scene the ray is to be/was cast.
public float rayDepth
Результат float

targetObj публичное свойство

The IUIObject that this pointer is affecting, if any.
public IUIObject targetObj
Результат IUIObject

type публичное свойство

The type of pointer this is.
public POINTER_TYPE type
Результат POINTER_TYPE