Mouse Click (Behaviour)

 Mouse Click (Behaviour): 

Description

Mouse Click triggers are activated by the player clicking the mouse button, or by tapping the screen on mobile devices.

Properties

Capture Clicks Anywhere

If this property is enabled, then the trigger will activate by clicking (or tapping) anywhere on the game screen. Otherwise, it will only be activated by clicking (or tapping) directly on the object.

Outputs

Down Activated when the left mouse button is pressed, or the player touches the device screen

Up Activated when the left mouse button is released, or when the player stops touching the device screen

Over Activated when the mouse pointer hovers over the object, or when the player drags their finger onto the object on mobile

Out Activated when the mouse pointer leaves the object, or when the player drags their finger out of the object on mobile.