Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't import vrm #2462

Open
Preta-Crowz opened this issue Oct 15, 2024 · 0 comments
Open

Can't import vrm #2462

Preta-Crowz opened this issue Oct 15, 2024 · 0 comments
Labels
bug Something isn't working importer
Milestone

Comments

@Preta-Crowz
Copy link

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 Preta-Crowz added the bug Something isn't working label Oct 15, 2024
@ousttrue ousttrue added this to the nextnext milestone Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working importer
Projects
None yet
Development

No branches or pull requests

2 participants