Method GetRaycastHitFromCamera
GetRaycastHitFromCamera(Int32)
Casts a ray from the main camera when the raycastButton is pressed.
Declaration
public static RideRaycastHit GetRaycastHitFromCamera(int raycastButton)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | raycastButton | The mouse button that is required to press in order to cast a ray |
Returns
Type | Description |
---|---|
RideRaycastHit |