Environment.GetAllEntitiesUnderMouseCursor Method
Parameters
- mousePos
- Point
Mouse position in screen coordinates
- selectableOnly
- bool
When true, checks the Entity.Selectable property, otherwise no.
Return Value
int[]The list of entity indices.
The sensitivity is affected by the PickBoxSize parameter. Only the entities that are visible on screen and in the selectionBox are considered, the ones covered by other entities are not considered.