d4rkc0d3r / d4rkAvatarOptimizer

d4rkpl4y3r's VRChat Avatar 3.0 optimizer
MIT License
400 stars 17 forks source link

NullReferenceException: Object reference not set to an instance of an object #72

Closed jerryzmtz closed 11 months ago

jerryzmtz commented 11 months ago

Somehow I could not use ShaderToggles for a specific dress. All the game objects are using poiyomi shaders, which should have supported optimizations.

NullReferenceException: Object reference not set to an instance of an object d4rkAvatarOptimizer.CombineSkinnedMeshes () (at Packages/d4rkpl4y3r.d4rkavataroptimizer/Editor/d4rkAvatarOptimizer.cs:3507) d4rkAvatarOptimizer.Optimize () (at Packages/d4rkpl4y3r.d4rkavataroptimizer/Editor/d4rkAvatarOptimizer.cs:149) d4rkAvatarOptimizerEditor.OnInspectorGUI () (at Packages/d4rkpl4y3r.d4rkavataroptimizer/Editor/d4rkAvatarOptimizerEditor.cs:137) UnityEditor.UIElements.InspectorElement+<>c__DisplayClass58_0.b__0 () (at :0) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

jerryzmtz commented 11 months ago

It is caused by a missing skinnedmesh.