UniVRM icon indicating copy to clipboard operation
UniVRM copied to clipboard

Can't import vrm

Open Preta-Crowz opened this issue 4 months ago • 0 comments

Environments (please complete the following information):

  • UniVRM version: 0.127.1
  • Unity version: Unity-2022.3.22f1
  • OS: Windows 11

Describe the bug

Not sure why, import vrm causes null from generate SubAssetKey.

(From exported one) image (From downloaded one) image

[Assets/UniGLTF/Editor/UniGLTF/ScriptedImporter/TextureExtractor.cs line 93]

Unknown error occurred while loading 'VirtualArtifacts/Primary/5dc2c298c0018e5489becd6e56f29766'.
UnityEngine.StackTraceUtility:ExtractStackTrace ()
UnityEditor.AssetDatabase:LoadAssetAtPath<UnityEngine.Texture2D> (string)
UniGLTF.UnityPath:LoadAsset<UnityEngine.Texture2D> () (at Assets/UniGLTF/Runtime/UniGLTF/IO/UnityPath.cs:521)
UniGLTF.TextureExtractor/<>c__DisplayClass12_0:<ExtractTextures>b__0 () (at Assets/UniGLTF/Editor/UniGLTF/ScriptedImporter/TextureExtractor.cs:93)
UnityEditor.EditorApplication:Internal_CallDelayFunctions ()

[Assets/UniGLTF/Editor/UniGLTF/ScriptedImporter/TextureExtractor.cs line 93]

ArgumentNullException: Value cannot be null.
  at UniGLTF.SubAssetKey..ctor (UnityEngine.Texture obj) [0x00033] in G:\_KOKO\Unity\ARMi_Marshmelo_R\Assets\UniGLTF\Runtime\UniGLTF\IO\SubAssetKey.cs:38 
  at VRM.vrmAssetPostprocessor+<>c.<ImportVrmAndCreatePrefab>b__2_2 (UnityEngine.Texture x) [0x00000] in G:\_KOKO\Unity\ARMi_Marshmelo_R\Assets\VRM\Editor\Format\vrmAssetPostprocessor.cs:78 
  at (wrapper delegate-invoke) System.Func`2[UnityEngine.Texture,UniGLTF.SubAssetKey].invoke_TResult_T(UnityEngine.Texture)
  at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] keySelector, System.Func`2[T,TResult] elementSelector, System.Collections.Generic.IEqualityComparer`1[T] comparer) [0x0008d] in <70471b9615aa4ecfa3ed1abb95b73832>:0 
  at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] keySelector, System.Func`2[T,TResult] elementSelector) [0x00000] in <70471b9615aa4ecfa3ed1abb95b73832>:0 
  at VRM.vrmAssetPostprocessor+<>c__DisplayClass2_0.<ImportVrmAndCreatePrefab>b__0 (System.Collections.Generic.IEnumerable`1[T] texturePaths) [0x00000] in G:\_KOKO\Unity\ARMi_Marshmelo_R\Assets\VRM\Editor\Format\vrmAssetPostprocessor.cs:76 
  at UniGLTF.TextureExtractor+<>c__DisplayClass12_0.<ExtractTextures>b__0 () [0x0006e] in G:\_KOKO\Unity\ARMi_Marshmelo_R\Assets\UniGLTF\Editor\UniGLTF\ScriptedImporter\TextureExtractor.cs:102 
  at UnityEditor.EditorApplication.Internal_CallDelayFunctions () [0x0002c] in <80a8ce1980c648dca8e68f0d8aa3b930>:0 

(Filename: Assets/VRM/Editor/Format/vrmAssetPostprocessor.cs Line: 76)

Asset Pipeline Refresh (id=f682453d26a3c2b4b83154e27e2465bc): Total: 0.013 seconds - Initiated by RefreshV2(AllowForceSynchronousImport)
Asset Pipeline Refresh (id=df597dc26c49d9a489e87c1aca672a3c): Total: 0.009 seconds - Initiated by RefreshV2(AllowForceSynchronousImport)

Preta-Crowz avatar Oct 15 '24 14:10 Preta-Crowz