GLTFUtility
GLTFUtility copied to clipboard
Null pointer at GetTextureCached Method
Hi, first thank you for this good Utility. I am trying to load gltf ( https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/master/2.0/AnimatedCube/glTF/AnimatedCube.gltf ). But I am getting error like ;
NullReferenceException: Object reference not set to an instance of an object Siccity.GLTFUtility.GLTFTexture+ImportResult+<GetTextureCached>d__3.MoveNext () (at Library/PackageCache/com.siccity.gltfutility@8a77cd5b2e7505556f7a15fa13d81b834559dd21/Scripts/Spec/GLTFTexture.cs:28)
At Siccity.GLTFUtility namespace, GetTextureCached method and this line:
IEnumerator en = image.CreateTextureAsync(linear, x => cache = x, onProgress);
What can be the problem ?
I am having the same issue when trying to import a GLB file. I can share the file if this helps.
I have the same issue on some files. Is there any update here?
I'm also facing the same issue, is there any fix?
Got same issue here
Same issue
It is due to the image being null. Still looking into why it is null but if you just add a null check it adds your model but with no texture.