- Home /
Is it possible to change the 'materials' root folder location?
I would like to structure the art of my project like:
Animations
Meshes
Materials
The problem is that if i have animationmeshes and import new meshes i end up with the current structure:
Animations
.....Materials
Meshes
.....Materials
Materials
How can I set the default location of the materials folder in the project?
Is it possible to set "Material Name: From model's material" as default?
That's a good question. I have the same problem and I solved it by disabling the material importing on the model after the materials created by the first import operation. Then I move them into my own materials folder. Reimporting of the same model doesn't create its subfolder for materials anymore. But this solution costs my time. I need to do that change for every model I added into my project.
Being able to change the material import folder would be awesome.
Answer by Paulius-Liekis · Aug 03, 2013 at 09:34 PM
I'm glad you asked :)
Use AssetPostprocessor.OnPreprocessModel - you can change import settings in this call.
It's not entirely straightforward, but you can implement your own AssetPostprocessor.OnAssignMaterialModel which locates and places material in your desired location.
Your answer
Follow this Question
Related Questions
How do I move the Asset Folder to another drive? 0 Answers
How to import .fbx with materials and textures in specific folder? 1 Answer
Weird Material clashing in LWRP with the CustomForwardRenderData 0 Answers
I need to group materials and objects in game together // Time sensitive// 0 Answers
How to get this cartoon style 0 Answers