RaycastResult.gameObject

public GameObject gameObject;

Description

The GameObject that was hit by the raycast.

Did you find this page useful? Please give it a rating: