Skip to content

On Demand Remap for Material Assignments #881

@ludwigseibt

Description

@ludwigseibt

Describe the bug 💬

It would be nice to have the same On Demand Remap feature as the FBX importer has.
This often comes in handy, when you want to share materials between seperately imported glTF assets. For example a repeating material that is not unique to one object.

I might invest time to implement this myself. Could someone point me to the right place to get started with this feature?

Thanks!

Steps to reproduce 🔢

It could work the same way as in the FBX importer:

  1. Import an object
  2. Go to Import Settings > Materials
  3. Hit "On Demand Remap" to automatically look for materials in the project that have the same name as the material slot on the imported object and setup the material remapping.

Files to reproduce the issue ♻

No response

Editor Version 🎲

6000.0

Render Pipeline and version

URP 17.0.3

UnityGLTF Version

2.17.0

Operating System 👩‍💻

Windows

When does this problem happen?

  • Editor Import
  • Runtime Import
  • Editor Export
  • Runtime Export

Additional Info 📜

No response

Validations 🩹

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions