Click or drag to resize

FingersScriptGestureIntersectsObject Method

Check if a gesture intersects an object

Namespace:  DigitalRubyShared
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public static GameObject GestureIntersectsObject(
	GestureRecognizer r,
	Camera camera,
	GameObject obj,
	GestureRecognizerComponentScriptBaseGestureObjectMode mode
)

Parameters

r
Type: DigitalRubySharedGestureRecognizer
Gesture recognizer
camera
Type: Camera
Camera
obj
Type: GameObject
Object to check for intersection
mode
Type: DigitalRubySharedGestureRecognizerComponentScriptBaseGestureObjectMode
Gesture mode

Return Value

Type: GameObject
The intersected game object or null if none
See Also