기술 자료

지원

Clicked on node

Detect when a user clicks on a specific object in the scene.
읽는 시간 1분최근 업데이트: 5일 전

Use the Clicked on node to detect when a user clicks a specific object. The node triggers when the user clicks on your chosen object with a mouse. This node works only with UI Buttons or 3D objects that have a Collider component. This node is useful if you want to make objects interactive, like to open a door when the user clicks the door, or to perform an action when a user clicks a button.

Sockets

Socket

Type

Description

Object
GameObject
The object to listen for mouse clicks on. Must be a UI Button or a 3D object with a Collider.