---
title: Utils
product: Unity Editor
version: '7000.0'
latest_version: '7000.0'
status: This page documents version 7000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/diagnostics/utils
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/diagnostics/utils.md
last_updated: 2026-10-20
generated_at: 2026-11-11T00:08:48.984Z
locale: en-us
---

# Utils

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

## Definition

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

```csharp
public static class Utils
```

## Static Methods

| Method                                                                                          | Description                                                                                          |
| ----------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| [ForceCrash](/engine/7000.0/script-reference/unityengine/diagnostics/utils/forcecrash.md)       | Manually causes an application crash in the specified category.                                      |
| [NativeAssert](/engine/7000.0/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/7000.0/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/7000.0/script-reference/unityengine/diagnostics/utils/nativewarning.md) | Manually causes a warning that outputs the specified message to the log and registers an error.      |
