# ICanvasRaycastFilter

> This element can filter raycasts. If the top level element is hit it can further 'check' if the location is valid.

## Definition

* **Type:** Interface
* **Namespace:** [UnityEngine](/engine/6000.6/script-reference/unityengine.md)
* **Assembly:** UnityEngine.UIModule

```csharp
public interface ICanvasRaycastFilter
```

## Methods

| Method                                                                                                               | Description                                      |
| -------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------ |
| [IsRaycastLocationValid](/engine/6000.6/script-reference/unityengine/icanvasraycastfilter/israycastlocationvalid.md) | Given a point and a camera is the raycast valid. |
