KisaragiEffective / ResoniteImportHelper

Convert Unity avatar into glTF, then import to Resonite
MIT License
19 stars 0 forks source link

[0.1.15] NullReferenceException: Object reference not set to an instance of an object #167

Closed KisaragiEffective closed 1 month ago

KisaragiEffective commented 1 month ago
NullReferenceException: Object reference not set to an instance of an object
ResoniteImportHelper.Transform.AvatarTransformService+<>c__DisplayClass5_0.<ModifyArmature>g__RewriteIfSet|0 (UnityEngine.HumanBodyBones hbb, System.String newName) (at ./Library/PackageCache/io.github.kisaragieffective.resonite-import-helper@1b80344c19/Editor/Transform/AvatarTransformService.cs:153)
ResoniteImportHelper.Transform.AvatarTransformService.ModifyArmature (UnityEngine.GameObject root, UnityEngine.Animator rig) (at ./Library/PackageCache/io.github.kisaragieffective.resonite-import-helper@1b80344c19/Editor/Transform/AvatarTransformService.cs:243)
ResoniteImportHelper.Transform.AvatarTransformService.InPlaceConvert (UnityEngine.GameObject target, System.Boolean bakeTexture, ResoniteImportHelper.Allocator.ResourceAllocator alloc) (at ./Library/PackageCache/io.github.kisaragieffective.resonite-import-helper@1b80344c19/Editor/Transform/AvatarTransformService.cs:93)
ResoniteImportHelper.Transform.AvatarTransformService.PerformConversionPure (UnityEngine.GameObject unmodifiableRoot, System.Boolean runVRCSDKPipeline, System.Boolean runNDMF, System.Boolean bakeTexture, ResoniteImportHelper.Allocator.ResourceAllocator alloc) (at ./Library/PackageCache/io.github.kisaragieffective.resonite-import-helper@1b80344c19/Editor/Transform/AvatarTransformService.cs:37)
ResoniteImportHelper.TransFront.Entry.PerformConversion (UnityEngine.GameObject unmodifiableRoot, System.Boolean runVRCSDKPipeline, System.Boolean runNDMF, System.Boolean bakeTexture, System.Boolean generateIntermediateArtifact) (at ./Library/PackageCache/io.github.kisaragieffective.resonite-import-helper@1b80344c19/Editor/TransFront/Entry.cs:28)
ResoniteImportHelper.UI.Component.Body+<>c__DisplayClass2_0.<RenderTo>b__3 () (at ./Library/PackageCache/io.github.kisaragieffective.resonite-import-helper@1b80344c19/Editor/UI/Component/Body.cs:74)
UnityEngine.UIElements.Clickable.Invoke (UnityEngine.UIElements.EventBase evt) (at /home/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/Clickable.cs:314)
UnityEngine.UIElements.Clickable.ProcessUpEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.Vector2 localPosition, System.Int32 pointerId) (at /home/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/Clickable.cs:402)
UnityEngine.UIElements.Clickable.OnMouseUp (UnityEngine.UIElements.MouseUpEvent evt) (at /home/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/Clickable.cs:195)
UnityEngine.UIElements.EventCallbackFunctor`1[TEventType].Invoke (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.PropagationPhase propagationPhase) (at /home/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/Events/EventCallback.cs:79)
UnityEngine.UIElements.EventCallbackRegistry.InvokeCallbacks (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.PropagationPhase propagationPhase) (at /home/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/Events/EventCallbackRegistry.cs:353)
UnityEngine.UIElements.CallbackEventHandler.HandleEvent (UnityEngine.UIElements.EventBase evt) (at /home/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/Events/EventHandler.cs:263)
UnityEngine.UIElements.CallbackEventHandler.HandleEventAtCurrentTargetAndPhase (UnityEngine.UIElements.EventBase evt) (at /home/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/Events/EventHandler.cs:189)
UnityEngine.UIElements.CallbackEventHandler.HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase evt) (at /home/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/Events/EventHandler.cs:173)
UnityEngine.UIElements.MouseCaptureDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at /home/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/Events/MouseCaptureDispatchingStrategy.cs:88)
UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, System.Boolean imguiEventIsInitiallyUsed) (at /home/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/EventDispatcher.cs:422)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at /home/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/EventDispatcher.cs:363)
UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at /home/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/EventDispatcher.cs:321)
UnityEngine.UIElements.EventDispatcher.OpenGate () (at /home/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/EventDispatcher.cs:285)
UnityEngine.UIElements.EventDispatcherGate.Dispose () (at /home/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/EventDispatcher.cs:77)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at /home/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/EventDispatcher.cs:413)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at /home/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/EventDispatcher.cs:229)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at /home/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/Panel.cs:520)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at /home/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/UIElementsUtility.cs:477)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at /home/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/UIElementsUtility.cs:205)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at /home/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/UIElementsUtility.cs:74)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at /home/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/UIElementsUtility.cs:28)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at /home/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:203)
KisaragiEffective commented 1 month ago

目のボーンで分岐したときに修正をミスったと思われる