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 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:
Booleantrue if the pointer is over the GameObject;
false otherwise.
See Also