Diagnostic Analyzers

May 18, 2026 ยท View on GitHub

IDTitleCategory
UNT0001Empty Unity messagePerformance
UNT0002Inefficient tag comparisonPerformance
UNT0003Usage of non generic GetComponentType Safety
UNT0004Time.fixedDeltaTime used with UpdateCorrectness
UNT0005Time.deltaTime used with FixedUpdate [retired]Correctness
UNT0006Incorrect message signatureType Safety
UNT0007Null coalescing on Unity objectsCorrectness
UNT0008Null propagation on Unity objectsCorrectness
UNT0009Missing static constructor with InitializeOnLoadCorrectness
UNT0010Component instance creationType Safety
UNT0011ScriptableObject instance creationType Safety
UNT0012Unused coroutine return valueCorrectness
UNT0013Invalid or redundant SerializeField attributeCorrectness
UNT0014GetComponent called with non-Component or non-Interface typeType Safety
UNT0015Incorrect method signature with InitializeOnLoadMethod, RuntimeInitializeOnLoadMethod or DidReloadScripts attributeType Safety
UNT0016Unsafe way to get the method nameType Safety
UNT0017SetPixels invocation is slowPerformance
UNT0018System.Reflection features in performance critical messagesPerformance
UNT0019Unnecessary indirection call for GameObject.gameObjectPerformance
UNT0020MenuItem attribute used on non-static methodCorrectness
UNT0021Unity message should be protected [opt-in]Correctness
UNT0022Inefficient method to set position and rotationPerformance
UNT0023Coalescing assignment on Unity objectsCorrectness
UNT0024Give priority to scalar calculations over vector calculationsPerformance
UNT0025Input.GetKey overloads with KeyCode argumentCorrectness
UNT0026GetComponent always allocatesPerformance
UNT0027Do not call PropertyDrawer.OnGUI()Correctness
UNT0028Use non-allocating physics APIsPerformance
UNT0029Pattern matching with null on Unity objectsCorrectness
UNT0030Calling Destroy or DestroyImmediate on a TransformCorrectness
UNT0031Asset operations in LoadAttribute methodCorrectness
UNT0032Inefficient method to set localPosition and localRotationPerformance
UNT0033Incorrect message caseCorrectness
UNT0034A Vector3 can be converted into a Vector2Readability
UNT0035A Vector2 can be converted into a Vector3Readability
UNT0036Inefficient method to get position and rotationPerformance
UNT0037Inefficient method to get localPosition and localRotationPerformance
UNT0038Cache WaitForSeconds invocationsPerformance
UNT0039Use RequireComponent attribute when self-invoking GetComponentType Safety
UNT0040GameObject.isStatic is editor-onlyCorrectness
UNT0041Use Animator.StringToHash for repeated Animator method callsPerformance
UNT0042Mesh array property accessed in loopPerformance
UNT0043Possible typo in conditional compilation symbolCorrectness

Diagnostic Suppressors

IDSuppressed IDJustification
USP0001IDE0029Unity objects should not use null coalescing
USP0002IDE0031Unity objects should not use null propagation
USP0003IDE0051The Unity runtime invokes Unity messages
USP0004IDE0044Don't flag fields decorated with serialization attributes as read-only
USP0005IDE0060The Unity runtime invokes Unity messages
USP0006IDE0051Don't flag private fields decorated with serialization attributes as unused
USP0007CS0649Don't flag fields decorated with serialization attributes as never assigned
USP0008IDE0051Don't flag private methods used with Invoke/InvokeRepeating or StartCoroutine/StopCoroutine as unused
USP0009IDE0051Don't flag methods decorated with MenuItem/ContextMenu attribute or referenced by a field with the ContextMenuItem attribute as unused
USP0010IDE0051Don't flag fields decorated with the ContextMenuItem attribute as unused
USP0011IDE0044Don't make fields decorated with the ContextMenuItem attribute read-only
USP0012IDE0051Don't flag private methods with InitializeOnLoadMethod, RuntimeInitializeOnLoadMethod or DidReloadScripts attribute as unused
USP0013CA1823Don't flag private fields decorated with serialization attributes as unused
USP0014CA1822The Unity runtime invokes Unity messages
USP0015CA1801The Unity runtime invokes Unity messages
USP0016CS8618Initialization detection with nullable reference types
USP0017IDE0074Unity objects should not use coalescing assignment
USP0018IDE0016Unity objects should not be used with throw expressions
USP0019IDE0051Don't flag private members with implicit-usage attributes as unused
USP0020IDE0052The Unity runtime invokes Unity messages
USP0021IDE0041Prefer reference equality
USP0022IDE0270Unity objects should not use if null coalescing
USP0023IDE1006The Unity runtime invokes Unity messages