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
Heya, I've been using GLTFUtility with a project I'm working on to import user selected models during runtime and it's been working great but with a couple files now I've run into the issue of sometimes models not including textures or material information which causes the importer to throw ArgumentNull Exceptions despite having perfectly serviceable mesh data which is all I need for my implementation. I thought I could circumvent this issue by using ImportSettings to tell the loader to NOT attempt to add material data. This seemed reasonable when I saw ImportSettings has a bool field called materials. But after experimenting with it the errors kept popping up and sure enough after diving through a couple of the scripts and seeking refferences and definitions I noticed the materials field of the ImportSettings sent into ImportGLTFAsync appears to not be used or refferenced anywhere?
If this is really the case, I'd like to suggest the possibility to use this field to tell the importer to skip attempting to load materials and textures OR it be removed to prevent confusion in the future.
The text was updated successfully, but these errors were encountered:
Heya, I've been using GLTFUtility with a project I'm working on to import user selected models during runtime and it's been working great but with a couple files now I've run into the issue of sometimes models not including textures or material information which causes the importer to throw ArgumentNull Exceptions despite having perfectly serviceable mesh data which is all I need for my implementation. I thought I could circumvent this issue by using ImportSettings to tell the loader to NOT attempt to add material data. This seemed reasonable when I saw ImportSettings has a bool field called materials. But after experimenting with it the errors kept popping up and sure enough after diving through a couple of the scripts and seeking refferences and definitions I noticed the materials field of the ImportSettings sent into ImportGLTFAsync appears to not be used or refferenced anywhere?
If this is really the case, I'd like to suggest the possibility to use this field to tell the importer to skip attempting to load materials and textures OR it be removed to prevent confusion in the future.
The text was updated successfully, but these errors were encountered: