---
title: Code reloading issues
product: Unity Editor
version: '6000.7'
latest_version: '7000.0'
status: This page documents version 6000.7. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/6000.7/manual/analysis/project-auditor/project-issues/code-reloading-issues
latest_url: https://docs.unity.com/en-us/engine/7000.0/manual/analysis/project-auditor/project-issues/code-reloading-issues.md
last_updated: 2026-11-13
generated_at: 2026-11-16T18:41:32.542Z
locale: en-us
---

# Code reloading issues

> Understand how code reloading can affect your project.

Project Auditor uses a Roslyn analyzer to detect code issues that can cause unexpected or nondeterministic behavior if code reload on entering Play mode is disabled in your project, as it is by default. Code reloading can impact project iteration times, in particular the time it takes to enter and exit Play mode, so it's best practice to fix all the issues, and then keep code reload off.

## Code reload overview

For an overview of what code reload is and the effects of keeping it off, refer to [Enter Play mode without code reload](/engine/6000.7/manual/programming-environment/code-reload-serialization/code-reload/code-reloading-editor/domain-reloading.md).

The Roslyn analyzer searches the project's code for types with static fields that would keep their value between different Play mode runs unless reset.

Project Auditor raises warning diagnostics if a type has any static fields, automatic properties, or events that are not decorated with either the [`[AutoStaticsCleanup]`](/engine/6000.7/script-reference/unity/scripting/lifecyclemanagement/autostaticscleanupattribute.md) or the [`[NoAutoStaticsCleanup]`](/engine/6000.7/script-reference/unity/scripting/lifecyclemanagement/noautostaticscleanupattribute.md) attribute. The analyzer emits warnings with the `UAL` prefix.

## Display code reload issues

Project Auditor displays code reload issues in the [Code Issues view](/engine/6000.7/manual/analysis/project-auditor/window/code-view-reference.md#code-view), alongside other code issues. These issues affect Editor iteration time.

## Resolve code reload issues

For information on the exact warning codes generated by the analyzer and the appropriate resolution for each of them, refer to [Automatic reset of static state](/engine/6000.7/manual/programming-environment/code-reload-serialization/code-reload/code-reloading-editor/domain-reloading.md#automatic-static-reset).

## Additional resources

* [Code view reference](/engine/6000.7/manual/analysis/project-auditor/window/code-view-reference.md)
* [Enter Play mode without code reload](/engine/6000.7/manual/programming-environment/code-reload-serialization/code-reload/code-reloading-editor/domain-reloading.md)
* [Code reload and the code lifecycle](/engine/6000.7/manual/programming-environment/code-reload-serialization/code-reload/code-lifecycle.md)
