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

Error when importing .glb file #26

Closed
umresh opened this issue Sep 24, 2019 · 3 comments
Closed

Error when importing .glb file #26

umresh opened this issue Sep 24, 2019 · 3 comments
Labels
bug Something isn't working

Comments

@umresh
Copy link

umresh commented Sep 24, 2019

Hi, I'm getting error on loading .glb file

InvalidOperationException: Nullable object must have a value.
System.Nullable`1[T].get_Value () (at <599589bf4ce248909b8a14cbe4a2034e>:0)
Siccity.GLTFUtility.GLTFAccessor.Import (Siccity.GLTFUtility.GLTFBufferView+ImportResult[] bufferViews) (at Assets/Scripts/Spec/GLTFAccessor.cs:302)
Siccity.GLTFUtility.Importer+<>c__DisplayClass7_0.<LoadInternal>b__2 (Siccity.GLTFUtility.GLTFAccessor x) (at Assets/Scripts/Importer.cs:86)
System.Linq.Enumerable+SelectListIterator`2[TSource,TResult].ToArray () (at <fbb5ed17eb6e46c680000f8910ebb50c>:0)
System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable`1[T] source) (at <fbb5ed17eb6e46c680000f8910ebb50c>:0)
Siccity.GLTFUtility.Importer.LoadInternal (Siccity.GLTFUtility.GLTFObject gltfObject, System.String filepath, Siccity.GLTFUtility.ImportSettings importSettings, Siccity.GLTFUtility.GLTFAnimation+ImportResult[]& animations) (at Assets/Scripts/Importer.cs:86)
Siccity.GLTFUtility.Importer.ImportGLB (System.String filepath, Siccity.GLTFUtility.ImportSettings importSettings, Siccity.GLTFUtility.GLTFAnimation+ImportResult[]& animations) (at Assets/Scripts/Importer.cs:60)
Siccity.GLTFUtility.GLBImporter.OnImportAsset (UnityEditor.Experimental.AssetImporters.AssetImportContext ctx) (at Assets/Scripts/Editor/GLBImporter.cs:11)
UnityEditor.Experimental.AssetImporters.ScriptedImporter.GenerateAssetData (UnityEditor.Experimental.AssetImporters.AssetImportContext ctx) (at C:/buildslave/unity/build/Modules/AssetPipelineEditor/Public/ScriptedImporter.cs:22)
@Siccity Siccity added the bug Something isn't working label Sep 24, 2019
@Siccity
Copy link
Owner

Siccity commented Sep 24, 2019

Can you attach the file you are trying to load?

@umresh
Copy link
Author

umresh commented Sep 25, 2019

Attaching the file. Its draco compressed .glb. And I want to load model at runtime and publish it in multiple platform your project is using Json.NET does it support multi-platform?

glb.zip

@Siccity
Copy link
Owner

Siccity commented Sep 25, 2019

Ah. Draco compression isn't supported yet. I will create a feature request

Yes I'm pretty sure Json.NET is multiplatform. GLTFUtility should work on all platforms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants