# CreateDebugView()

> Creates an object containing debug information of the device.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.NVIDIA](/engine/6000.7/script-reference/unityengine/nvidia.md)
* **Assembly:** UnityEngine.NVIDIAModule

```csharp
public GraphicsDeviceDebugView CreateDebugView()
```

### Returns

| Type                                                                                                     | Description                                                                                                                                                                                                  |
| -------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [GraphicsDeviceDebugView](/engine/6000.7/script-reference/unityengine/nvidia/graphicsdevicedebugview.md) | Returns an object of type [GraphicsDeviceDebugView](/engine/6000.7/script-reference/unityengine/nvidia/graphicsdevicedebugview.md). This object contains a snapshot of the debug information of the device.. |

### Remarks

It is best practice to call this function once per application instantiation. If you call this function, you must call [GraphicsDevice.DeleteDebugView](/engine/6000.7/script-reference/unityengine/nvidia/graphicsdevice/deletedebugview.md) during application destruction.

Additional Resources: [GraphicsDevice.UpdateDebugView](/engine/6000.7/script-reference/unityengine/nvidia/graphicsdevice/updatedebugview.md)
