Get the layer at the specified position
x | Specify the x-coordinate of the position of the layer you want to acquire in pixels on the display coordinates. |
y | Specify the y coordinate of the position of the layer you want to acquire in pixel units on the display coordinates. |
exclude_self | Specifies whether to exclude itself from the layer search. |
get_disabled | Specifies whether to get objects for layers that are disabled. |
The layer object that was in the specified position.
Null is returned if there is no layer at the specified position.
Returns the layer object at the position indicated by x, y.
The collision detection uses the same mechanism as the normal mouse event collision detection.
In other words, the specified position is viewed from the front in the layer stacking order, and the layer corresponding to the hit judgment is returned first.
You can exclude the layer that executes this method from the search by specifying true with the exclude_self argument.