# LoadDeviceByName

> Loads the requested device at the beginning of the next frame.

## Definition

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

## LoadDeviceByName(string)

Loads the requested device at the beginning of the next frame.

> **Warning:**
>
> **Removed.** XRSettings.LoadDeviceByName is deprecated and should no longer be used. Instead, query subsystem descriptors via the SubsystemManager to create and start the subsystems you need.

```csharp
public static void LoadDeviceByName(string deviceName)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Name of the device from [XRSettings.supportedDevices](/engine/6000.5/script-reference/unityengine/xr/xrsettings/supporteddevices.md).

### Remarks

This API is deprecated and should no longer be used.

## LoadDeviceByName(string\[])

Loads the requested device at the beginning of the next frame.

> **Warning:**
>
> **Removed.** XRSettings.LoadDeviceByName is deprecated and should no longer be used. Instead, query subsystem descriptors via the SubsystemManager to create and start the subsystems you need..

```csharp
public static void LoadDeviceByName(string[] prioritizedDeviceNameList)
```

### Parameters

**** (\[string\[]]\(https\://learn.microsoft.com/dotnet/api/system.string)): Prioritized list of device names from [XRSettings.supportedDevices](/engine/6000.5/script-reference/unityengine/xr/xrsettings/supporteddevices.md).

### Remarks

This API is deprecated and should no longer be used.
