# SetTrackingSpaceType(TrackingSpaceType)

> Sets the device's current TrackingSpaceType. Returns true on success. Returns false if the given TrackingSpaceType is not supported or the device fails to switch.

## Definition

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

> **Warning:**
>
> **Removed.** XRDevice.SetTrackingSpaceType is deprecated, and should no longer be used. Please use XRInputSubsystem.TrySetTrackingOriginMode.

```csharp
public static bool SetTrackingSpaceType(TrackingSpaceType trackingSpaceType)
```

### Parameters

**** (\[TrackingSpaceType]\(/engine/6000.5/script-reference/unityengine/xr/trackingspacetype)):&#x20;

### Returns

| Type                                                          | Description                                                                                           |
| ------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True on success. False if the given TrackingSpaceType is not supported or the device fails to switch. |
