Documentation

Support

Unity Lite

Open Unity Lite

Unity Lite

Clicked on node

Detect when a user clicks on a specific object in the scene.
Read time 1 minuteLast updated 2 days ago

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.