Detects if the (mouse) pointer is over the gameobject.
This function should be called in your update function.
Parameters
gameObject: GameObject
The gameobject reference.
Returns boolean
True, if the pointer is over the gameobject.
Example
// Creating a button using a gameobject constbutton = createTextGameObject('click me'); // Test if button is clicked if (pointer_over_gameobject(button) && input_left_mouse_down()) { // Button is clicked }
Detects if the (mouse) pointer is over the gameobject. This function should be called in your update function.