> For the complete documentation index, see [llms.txt](https://santutu.gitbook.io/rts-selection-system/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://santutu.gitbook.io/rts-selection-system/extra-customization/aselectabledetector.cs.md).

# ASelectableDetector.cs

An abstract Unity MonoBehaviour class that serves as a base for detecting selectable objects in an RTS game.

```csharp
public abstract class ASelectableDetector : MonoBehaviour
{
    public abstract bool TryGetSelectable(Vector3 point, out ISelectable selectable);
}
```

&#x20;The core functionality is:

* Abstract method `TryGetSelectable()` that attempts to find a selectable object at a given point
* Inheriting classes must implement detection logic
* Returns boolean success and outputs ISelectable interface through out parameter

Common use cases:

* Raycast-based selection detection
* Mouse hover detection
