# IsRaycastLocationValid(Vector2, Camera)

> Returns true if the Group allows raycasts.

## Definition

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

```csharp
public bool IsRaycastLocationValid(Vector2 sp, Camera eventCamera)
```

### Parameters

**** (\[Vector2]\(/engine/6000.6/script-reference/unityengine/vector2)): **** (\[Camera]\(/engine/6000.6/script-reference/unityengine/camera)):&#x20;

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) |             |
