# deviceLoaded

> Subscribe a delegate to this event to get notified when an XRDevice is successfully loaded.

## Definition

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

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

```csharp
public static event Action<string> deviceLoaded
```

### Remarks

In order to change the currently loaded device or reload the current device, use [XRSettings.LoadDeviceByName](/engine/6000.6/script-reference/unityengine/xr/xrsettings/loaddevicebyname.md).
