Open trzy opened 1 year ago
I got this on mouse over to the "Missing Script" (dead) component.
So fix or remove the dead component should do it. Or better, add null check to NaughtyAttributes code to prevent this annoying error, but you are on your own on this. ;)
Like wappenull said, but this may help you actually finding it: FindMissingScriptsRecursively
I'm getting that same error too
UnityEngine.Debug:LogError (object)
NaughtyAttributes.Editor.ReflectionUtility/<GetAllFields>d__0:MoveNext () (at Assets/_Scripts/NaughtyAttributes/Scripts/Editor/Utility/ReflectionUtility.cs:15)
System.Linq.Enumerable:FirstOrDefault<System.Reflection.FieldInfo> (System.Collections.Generic.IEnumerable`1<System.Reflection.FieldInfo>)
NaughtyAttributes.Editor.ReflectionUtility:GetField (object,string) (at Assets/_Scripts/NaughtyAttributes/Scripts/Editor/Utility/ReflectionUtility.cs:82)
NaughtyAttributes.Editor.PropertyUtility:GetAttributes<NaughtyAttributes.INaughtyAttribute> (UnityEditor.SerializedProperty) (at Assets/_Scripts/NaughtyAttributes/Scripts/Editor/Utility/PropertyUtility.cs:20)
NaughtyAttributes.Editor.PropertyUtility:GetAttribute<NaughtyAttributes.INaughtyAttribute> (UnityEditor.SerializedProperty) (at Assets/_Scripts/NaughtyAttributes/Scripts/Editor/Utility/PropertyUtility.cs:14)
NaughtyAttributes.Editor.NaughtyInspector/<>c:<OnInspectorGUI>b__7_0 (UnityEditor.SerializedProperty) (at Assets/_Scripts/NaughtyAttributes/Scripts/Editor/NaughtyInspector.cs:40)
System.Linq.Enumerable:Any<UnityEditor.SerializedProperty> (System.Collections.Generic.IEnumerable`1<UnityEditor.SerializedProperty>,System.Func`2<UnityEditor.SerializedProperty, bool>)
NaughtyAttributes.Editor.NaughtyInspector:OnInspectorGUI () (at Assets/_Scripts/NaughtyAttributes/Scripts/Editor/NaughtyInspector.cs:40)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
Certain objects seem to trigger this error:
Has anyone else experienced this?
I'm using the Hairibar Ragdoll package, which brings in NaughtyAttributes as a dependency. Currently, I've created a new project from scratch and am not even explicitly using anything from any of these packages yet.