Skip to main content

Arguments

Instance
required
Instance whose ClassName must be ClickDetector.
number
Optional distance value. Defaults to 0 and is passed as a float for “mouseclick” and “rightmouseclick”.
"mouseclick" | "rightmouseclick" | "mousehoverenter" | "mousehoverleave"
Optional interaction selector. It is read as a string, compared case-insensitively, and defaults to “mouseclick”.

Example

Fire the default “mouseclick” interaction on a ClickDetector.