C# Class POINTER_INFO, marblemadness

Tracks important information about the status of a pointing device (mouse, finger, arbitrary ray)
Afficher le fichier Open project: MtvnGames/marblemadness Class Usage Examples

Méthodes publiques

Свойство Type Description
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

Méthodes publiques

Méthode Description
Copy ( POINTER_INFO, ptr ) : void
Reset ( int actID ) : void
Reuse ( POINTER_INFO, ptr ) : void

Method Details

Copy() public méthode

public Copy ( POINTER_INFO, ptr ) : void
ptr POINTER_INFO,
Résultat void

Reset() public méthode

public Reset ( int actID ) : void
actID int
Résultat void

Reuse() public méthode

public Reuse ( POINTER_INFO, ptr ) : void
ptr POINTER_INFO,
Résultat void

Property Details

actionID public_oe property

ID of the current action. A new action ID is assigned each time the pointer goes "active" anew.
public int actionID
Résultat int

active public_oe property

A touch is currently active (finger is still on the pad, mouse button is held, etc).
public bool active
Résultat bool

activeTime public_oe property

The time (based on Time.time) that the pointer went active. This value is 0 when the pointer is not active.
public float activeTime
Résultat float

callerIsControl public_oe property

Signals whether the caller that is sending this pointer info is a control or not.
public bool callerIsControl
Résultat bool

camera public_oe property

The camera with which this pointer was used. This indicates which camera generated the ray information.
public Camera camera
Résultat Camera

devicePos public_oe property

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
Résultat Vector3

evt public_oe property

The type of event the state of this pointer has generated
public INPUT_EVENT evt
Résultat INPUT_EVENT

hitInfo public_oe property

Struct that holds info about the raycast hit (if any) against a UI element.
public RaycastHit,UnityEngine hitInfo
Résultat UnityEngine.RaycastHit

id public_oe property

ID of the pointer.
public int id
Résultat int

inputDelta public_oe property

Change in the devicePos since the last polling.
public Vector3 inputDelta
Résultat Vector3

isTap public_oe property

Gets set to false after a touch/click moves beyond the drag threshold.
public bool isTap
Résultat bool

layerMask public_oe property

The layer mask for this pointer.
public int layerMask
Résultat int

origPos public_oe property

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
Résultat Vector3

prevRay public_oe property

The ray from the previous polling.
public Ray prevRay
Résultat Ray

ray public_oe property

The ray projecting into the world for this pointing device.
public Ray ray
Résultat Ray

rayDepth public_oe property

Depth into the scene the ray is to be/was cast.
public float rayDepth
Résultat float

targetObj public_oe property

The IUIObject that this pointer is affecting, if any.
public IUIObject targetObj
Résultat IUIObject

type public_oe property

The type of pointer this is.
public POINTER_TYPE type
Résultat POINTER_TYPE