Click or drag to resize

HitData Constructor (RaycastHit2D, TouchLayer, Boolean)

Initializes a new instance of the HitData struct from a 2D raycast.

Namespace:  TouchScript.Hit
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public HitData(
	RaycastHit2D value,
	TouchLayer layer,
	bool screenSpace = false
)

Parameters

value
Type: RaycastHit2D
2D raycast value.
layer
Type: TouchScript.LayersTouchLayer
screenSpace (Optional)
Type: SystemBoolean
See Also