C# 클래스 POINTER_INFO, marblemadness

Tracks important information about the status of a pointing device (mouse, finger, arbitrary ray)
파일 보기 프로젝트 열기: MtvnGames/marblemadness 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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