anatawa12 / AvatarOptimizer

AAO: Avatar Optimizer: Non Destructive Avatar Optimization Utilities
MIT License
196 stars 24 forks source link

RemoveMeshByBlendShape がある Prefab Variant を編集すると PSUCREImpl で ANE が発生する #1347

Closed kb10uy closed 1 week ago

kb10uy commented 1 week ago

概要

ArgumentNullException: Value cannot be null.
Parameter name: obj
UnityEditor.PrefabUtility.GetCorrespondingObjectFromSource[TObject] (TObject componentOrGameObject) (at <80a8ce1980c648dca8e68f0d8aa3b930>:0)
Anatawa12.AvatarOptimizer.PrefabSafeUniqueCollection.PrefabSafeUniqueCollectionRuntimeEditorImpl`3[TAdditionValue,TRemoveKey,TManipulator].OnValidate[TComponent] (TComponent component, System.Func`2[T,TResult] getPrefabSafeUniqueCollection) (at ./Packages/com.anatawa12.avatar-optimizer/Internal/PrefabSafeSet/Editor/UniqueCollection/PrefabSafeUniqueCollectionRuntimeEditorImpl.cs:36)
System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <27124aa0e30a41659b903b822b959bc7>:0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <27124aa0e30a41659b903b822b959bc7>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <27124aa0e30a41659b903b822b959bc7>:0)
Anatawa12.AvatarOptimizer.PrefabSafeUniqueCollection.PrefabSafeUniqueCollection.OnValidate[TAdditionValue,TRemoveKey,TManipulator,TComponent] (TComponent component, System.Func`2[T,TResult] getPrefabSafeUniqueCollection) (at ./Packages/com.anatawa12.avatar-optimizer/Internal/PrefabSafeSet/Runtime/PrefabSafeUniqueCollection.cs:331)
Anatawa12.AvatarOptimizer.PrefabSafeSet.PrefabSafeSet.OnValidate[T,TComponent] (TComponent component, System.Func`2[T,TResult] getPrefabSafeSet) (at ./Packages/com.anatawa12.avatar-optimizer/Internal/PrefabSafeSet/Runtime/PrefabSafeSet.cs:57)
Anatawa12.AvatarOptimizer.RemoveMeshByBlendShape.ValidatePSUC () (at ./Packages/com.anatawa12.avatar-optimizer/Runtime/RemoveMeshByBlendShape.cs:32)
Anatawa12.AvatarOptimizer.RemoveMeshByBlendShape.UnityEngine.ISerializationCallbackReceiver.OnBeforeSerialize () (at ./Packages/com.anatawa12.avatar-optimizer/Runtime/RemoveMeshByBlendShape.cs:36)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()

発生バージョン

1.8.0-rc.7