Siccity / GLTFUtility

Simple GLTF importer for Unity
MIT License
996 stars 218 forks source link

Not possible to update shader's materials #233

Closed kenorb closed 1 year ago

kenorb commented 1 year ago

I've imported .glb avatar, but Shader's Materials are read-only and it's not possible to modify them (like changing the colors or texture). Normally when I import .fbx object into a scene, I can modify materials, so new values are updated in .meta file.

Is it a feature, bug or by design?

kenorb commented 1 year ago

Ok, as for the workaround, it's possible to drag and drop the new texture onto the object on the scene, it'll replace the old materials, and the new info is stored into scene file. I think that would do.

Siccity commented 1 year ago

It's by design to replicate what the built-in FBX importer does. The materials are imported as they are from the file itself. The solution is to create and use your own materials like the way you did.