# DisableAutoXRCameraTracking(Camera, bool)

> Sets whether the camera passed in the first parameter is controlled implicitly by the XR Device

## Definition

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

> **Warning:**
>
> **Removed.** XRDevice.DisableAutoXRCameraTracking is deprecated, and should no longer be used. This API was only supported for legacy VR.

```csharp
public static void DisableAutoXRCameraTracking(Camera camera, bool disabled)
```

### Parameters

**** (\[Camera]\(/engine/6000.6/script-reference/unityengine/camera)): **** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)):&#x20;
