Skip to content

ImportSettings.materials does nothing? #241

Open

Description

@N3verm0re

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions