# defaultEventCameraIsMainCamera

> This option is enabled by default, automatically selecting the Main Camera (if available) as the Event Camera to transform screen positions into world-space rays.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine.UIElements](/engine/6000.7/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public bool defaultEventCameraIsMainCamera { get; set; }
```

### Remarks

If the Main Camera changes, the Event Camera is updated automatically with the new Camera.

If no Main Camera is active, screen-based events are disabled until a Main Camera becomes active again.

If World Space input is disabled, this property has no effect.
