Click or drag to resize

PointerUtilsIsPointerOnTarget Method (IPointer, Transform, HitData)

Determines whether the pointer is over a specific GameObject.

Namespace:  TouchScript.Utils
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public static bool IsPointerOnTarget(
	IPointer pointer,
	Transform target,
	out HitData hit
)

Parameters

pointer
Type: TouchScript.PointersIPointer
The pointer.
target
Type: Transform
The target.
hit
Type: TouchScript.HitHitData
The hit.

Return Value

Type: Boolean
true if the pointer is over the GameObject; false otherwise.
See Also