You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NullReferenceException: Object reference not set to an instance of an object
UniVRM10.MeshImporterDivided.UpdateVerticesAndBindPose (VrmLib.MeshGroup meshGroup, System.Int32 vertexCount, UnityEngine.Mesh resultMesh) (at Library/PackageCache/com.vrmc.vrm@f9ee070a7b/Runtime/IO/Model/MeshImporterDivided.cs:259)
UniVRM10.MeshImporterDivided.LoadDivided (VrmLib.MeshGroup meshGroup) (at Library/PackageCache/com.vrmc.vrm@f9ee070a7b/Runtime/IO/Model/MeshImporterDivided.cs:27)
UniVRM10.Vrm10Importer.LoadGeometryAsync (VRMShaders.IAwaitCaller awaitCaller, System.Func`2[T,TResult] MeasureTime) (at Library/PackageCache/com.vrmc.vrm@f9ee070a7b/Runtime/IO/Vrm10Importer.cs:196)
UniGLTF.ImporterContext.LoadAsync (VRMShaders.IAwaitCaller awaitCaller, System.Func`2[T,TResult] MeasureTime) (at Library/PackageCache/com.vrmc.gltf@f9ee070a7b/Runtime/UniGLTF/IO/ImporterContext.cs:114)
UniVRM10.Vrm10Importer.LoadAsync (VRMShaders.IAwaitCaller awaitCaller, System.Func`2[T,TResult] MeasureTime) (at Library/PackageCache/com.vrmc.vrm@f9ee070a7b/Runtime/IO/Vrm10Importer.cs:163)
Rethrow as AggregateException: One or more errors occurred. (Object reference not set to an instance of an object)
Rethrow as AggregateException: One or more errors occurred. (One or more errors occurred. (Object reference not set to an instance of an object))
UniGLTF.ImporterContextExtensions.Load (UniGLTF.ImporterContext self) (at Library/PackageCache/com.vrmc.gltf@f9ee070a7b/Runtime/UniGLTF/IO/ImporterContextExtensions.cs:29)
UniVRM10.VrmScriptedImporterImpl.Process (UniVRM10.Vrm10Data result, UnityEditor.AssetImporters.ScriptedImporter scriptedImporter, UnityEditor.AssetImporters.AssetImportContext context, UniGLTF.RenderPipelineTypes renderPipeline, System.Boolean doNormalize) (at Library/PackageCache/com.vrmc.vrm@f9ee070a7b/Editor/ScriptedImporter/VrmScriptedImporterImpl.cs:53)
UniVRM10.VrmScriptedImporterImpl.Import (UnityEditor.AssetImporters.ScriptedImporter scriptedImporter, UnityEditor.AssetImporters.AssetImportContext context, System.Boolean doMigrate, UniGLTF.RenderPipelineTypes renderPipeline, System.Boolean doNormalize) (at Library/PackageCache/com.vrmc.vrm@f9ee070a7b/Editor/ScriptedImporter/VrmScriptedImporterImpl.cs:89)
UniVRM10.VrmScriptedImporter.OnImportAsset (UnityEditor.AssetImporters.AssetImportContext ctx) (at Library/PackageCache/com.vrmc.vrm@f9ee070a7b/Editor/ScriptedImporter/VrmScriptedImporter.cs:25)
UnityEditor.AssetImporters.ScriptedImporter.GenerateAssetData (UnityEditor.AssetImporters.AssetImportContext ctx) (at <36f62d8e760b48f7af5d32916f997ce1>:0)
環境情報
0.99.0
Unity-2021.3.4f1
Windows 11 Pro 21H2 22000.675
バグについて
添付したVRM1 Betaの再現ファイル を
Assets
フォルダ以下に配置するとUniVRM10.MeshImporterDivided.UpdateVerticesAndBindPose()
でNullReferenceExceptionが発生して処理が中断します。Assets
フォルダに配置すると正常にインポートが完了しました。再現ファイルの拡張子を
.glb
に変更し、Assets
フォルダにコピーするとエラー無くPrefabが作成されます。そのPrefabをシーンに追加した状態のスクリーンショットです。正常に動作した場合もこのスクリーンショットのようになることを期待します。glTF 2.0サンプルモデルのBuggy.glbにVRM1エクステンションとヒューマンボーンを追加したモデルになります。
再現方法
(バグ内容に記載)
エラーの発生するファイル(ここに貼り付けても差し支えの無いもの)
Buggy.zip
The text was updated successfully, but these errors were encountered: