Input.mouseObject

Gets the world position of the cursor in the active scene.

class Input
static
GameObject
mouseObject
(
)

Return Value

Type: GameObject

The GameObject located at the current mouse Position

Meta