Skip to content

format

typescript
ControllerColliderHit.gameObject

class: ControllerColliderHit

description

(Read Only) The game object that was hit during a collision.

You can use this property to get the game object that was collided with, allowing you to perform actions such as collision detection, interaction, and handling interactions between characters and the environment.

parameter

param_nametypedescription

reture

typedescription
GameObjectThe game object that was hit.

code example