KellanHiggins / AsciiFBXExporterForUnity

A tool to export any Unity GameObject into a FBX ASCII format
Other
806 stars 165 forks source link

New materials are imported when a user exports without new Materials #7

Open KellanHiggins opened 8 years ago

KellanHiggins commented 8 years ago

When an object is copied, it is first imported so the asset database can find this material. Unfortunately then it creates a bunch of meshes in the local Materials file, bloating the project.

It is a chicken and the egg problem.

Need to find out how to not import new materials, instead search system wide for the materials BEFORE the model that is being imported automatically generates a material folder.

A work around is to delete the newly created material folder and reimport the file as is. Then the materials will load correctly. This is just annoying.

RobertButterworth commented 8 years ago

I've added a pull request for this issue.

KellanHiggins commented 8 years ago

Thanks @RobertButterworth! I am not that familiar with how pull requests work on Github. I don't see a notification that a pull request has come in.

Also does your solution work in Unity 5.1.2?

RobertButterworth commented 8 years ago

Pull request is in. As for Unity 5.1.2 I'm not sure. I'm currently on 5.3.

KellanHiggins commented 8 years ago

Great, I'll check it out on 5.3. May add some conditionals if it doesn't work on 5.1.2.

What are you using the tool for?

RobertButterworth commented 8 years ago

I have written a Prefab extractor. You can select some mesh that is part of a larger mesh and have it automatically create a new FBX and Prefab for it. For it to work for us we need to not create any new materials and use the global set.

KellanHiggins commented 8 years ago

Awesome! Sorry I haven't got around to reviewing your pull, been super busy!