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

ImportSettings.materials does nothing? #241

Open
N3verm0re opened this issue May 11, 2023 · 0 comments
Open

ImportSettings.materials does nothing? #241

N3verm0re opened this issue May 11, 2023 · 0 comments

Comments

@N3verm0re
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant