Inspectopedia 2025.3 Help

Unity

'MonoBehaviour' instances must be instantiated with 'GameObject.AddComponent<T>()' instead of 'new'  

'MonoBehaviour' instances must be instantiated with 'GameObject.AddComponent<T>()' instead of 'new'.

'ScriptableObject' instances must be instantiated with 'ScriptableObject.CreateInstance<T>()' instead of 'new'  

'ScriptableObject' instances must be instantiated with 'ScriptableObject.CreateInstance<T>()' instead of 'new'.

Alternative non-allocating method available  

Alternative non-allocating method available.

Avoid 'base.OnGUI()' in classes derived from 'PropertyDrawer'  

Avoid 'base.OnGUI()' in classes derived from 'PropertyDrawer'.

Cannot resolve component or scriptable object  

Cannot resolve component or scriptable object.

DOTS: IAspect fields are required to be one of the following types: RefRW, RefRO, EnabledRefRW, EnabledRefRO, DynamicBuffer, or Entity  

DOTS: IAspect fields are required to be one of the following types: RefRW, RefRO, EnabledRefRW, EnabledRefRO, DynamicBuffer, or Entity.

DOTS: Inconsistent type keywords  

DOTS: Inconsistent type keywords.

DOTS: The type specified must be a structure type  

DOTS: The type specified must be a structure type.

Event function with the same name is already declared  

Event function with the same name is already declared.

Expected a type derived from 'Component' or 'MonoBehaviour'  

Expected a type derived from 'Component' or 'MonoBehaviour'.

Expected a type derived from 'ScriptableObject'  

Expected a type derived from 'ScriptableObject'.

Field of 'ComponentLookup' type must be updated before being used.  

Field of 'ComponentLookup' type must be updated before being used.

File name should match the name of the assembly  

File name should match the name of the assembly.

Group path is not defined  

Group path is not defined.

Incorrect method signature  

Incorrect method signature.

Incorrect Odin's group attribute type  

Incorrect Odin's group attribute type.

Member appears in multiple UI groups simultaneously  

Member appears in multiple UI groups simultaneously.

Method referenced in string literal does not have the expected signature  

Method referenced in string literal does not have the expected signature.

Parameter should be derived from 'Component'  

Parameter should be derived from 'Component'.

Possible incorrect application of attribute to multiple fields  

Possible incorrect application of attribute to multiple fields.

Possible unintended bypass of lifetime check of underlying Unity engine object (null coalescing on a type deriving from 'UnityEngine.Object' bypasses the lifetime check on the underlying Unity engine object)  

Possible unintended bypass of lifetime check of underlying Unity engine object (null coalescing on a type deriving from 'UnityEngine.Object' bypasses the lifetime check on the underlying Unity engine object).

Possible unintended bypass of lifetime check of underlying Unity engine object (null propagating on a type deriving from 'UnityEngine.Object' bypasses the lifetime check on the underlying Unity engine object)  

Possible unintended bypass of lifetime check of underlying Unity engine object (null propagating on a type deriving from 'UnityEngine.Object' bypasses the lifetime check on the underlying Unity engine object).

Possible unintended bypass of lifetime check of underlying Unity engine object (pattern matching null checks on a type deriving from 'UnityEngine.Object' bypasses the lifetime check on the underlying Unity engine object)  

Possible unintended bypass of lifetime check of underlying Unity engine object (pattern matching null checks on a type deriving from 'UnityEngine.Object' bypasses the lifetime check on the underlying Unity engine object).

Prefer GUID-based assembly references  

Prefer GUID-based assembly references.

Redundant attribute usage (attribute is redundant when applied to this declaration type)  

Redundant attribute usage (attribute is redundant when applied to this declaration type).

Redundant attribute usage (redundant 'FormerlySerializedAs' attribute)  

Redundant attribute usage (redundant 'FormerlySerializedAs' attribute).

Redundant attribute usage (redundant 'HideInInspector' attribute)  

Redundant attribute usage (redundant 'HideInInspector' attribute).

Redundant attribute usage (redundant 'InitializeOnLoad' attribute)  

Redundant attribute usage (redundant 'InitializeOnLoad' attribute).

Redundant attribute usage (redundant 'SerializeField' attribute)  

Redundant attribute usage (redundant 'SerializeField' attribute).

Redundant Unity event function  

Redundant Unity event function.

Repeated access of property on built in component is inefficient  

Repeated access of property on built in component is inefficient.

Scene does not exist  

Scene does not exist.

Scene is disabled in the build settings  

Scene is disabled in the build settings.

Setting 'parent' property immediately after object instantiation is inefficient  

Setting 'parent' property immediately after object instantiation is inefficient.

Short scene name is not unique  

Short scene name is not unique.

String based graphics property lookup is inefficient  

String based graphics property lookup is inefficient.

String based lookup of component type is inefficient  

String based lookup of component type is inefficient.

SystemApi.Query<...> type parameters must be Aspect, RefRO, or RefRW  

SystemApi.Query<...> type parameters must be Aspect, RefRO, or RefRW.

The index is missing in the build settings  

The index is missing in the build settings.

The input name is not defined in the Input manager  

The input name is not defined in the Input manager.

The layer is not defined in the 'Tags & Layers'  

The layer is not defined in the 'Tags & Layers'.

The resource is not defined in the project  

The resource is not defined in the project.

The same shortcut is defined for another menu item  

The same shortcut is defined for another menu item.

The tag is not defined in the 'Tags & Layers'  

The tag is not defined in the 'Tags & Layers'.

There is no animator state with the same name in the project.  

There is no animator state with the same name in the project.

There is no scene with the same name in the build settings  

There is no scene with the same name in the build settings.

To use the result of a 'GetSingleton' call in the function, 'OnCreate' must include a 'RequireForUpdate' call  

To use the result of a 'GetSingleton' call in the function, 'OnCreate' must include a 'RequireForUpdate' call.

Use 'CompareTag' instead of explicit string comparison  

Use 'CompareTag' instead of explicit string comparison.

Last modified: 02 March 2026