# Utils

> A utility class that you can use for diagnostic purposes.

## Definition

* **Type:** Class
* **Namespace:** [UnityEngine.Diagnostics](/engine/6000.6/script-reference/unityengine/diagnostics.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static class Utils
```

## Static Methods

| Method                                                                                          | Description                                                                                          |
| ----------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| [ForceCrash](/engine/6000.6/script-reference/unityengine/diagnostics/utils/forcecrash.md)       | Manually causes an application crash in the specified category.                                      |
| [NativeAssert](/engine/6000.6/script-reference/unityengine/diagnostics/utils/nativeassert.md)   | Manually causes an assert that outputs the specified message to the log and registers an error.      |
| [NativeError](/engine/6000.6/script-reference/unityengine/diagnostics/utils/nativeerror.md)     | Manually causes a native error that outputs the specified message to the log and registers an error. |
| [NativeWarning](/engine/6000.6/script-reference/unityengine/diagnostics/utils/nativewarning.md) | Manually causes a warning that outputs the specified message to the log and registers an error.      |
| [ValidateHeap](/engine/6000.6/script-reference/unityengine/diagnostics/utils/validateheap.md)   | Scans the managed heap to check for corrupted objects.                                               |
