|
Let's say I have an asset A that contains materials X,Y,Z. I have another asset B that also contains materials X,Y,Z. I would like to import A and then import B and create only materials X,Y,Z in unity3D. Instead, I am getting materials A-X A-Y A-Z B-X B-Y B-Z Now imagine I want to import 500 assets that all use X,Y,Z. I'd really rather not have 1500 materials when I only need 3. Thanks for any tips or pointers!
(comments are locked)
|
|
I have a postprocessor that does just that: http://buchhofer.com/?p=228 adjust your paths to suit, and also your default shader type. Thanks so much. I'll try these approaches.
Apr 12 '10 at 11:37 PM
pickledzebra
(comments are locked)
|
|
You have to create a script for the assetPostprocessor to say that I want unity to assign these materials. Here is an example tool that creates colliders only for the objects containing the word collider in them. The logic is the same, consider using user properties in your objects (Max,Maya) for more detailed control concerning materials. Have a look at this answer too. here I am still struggling to create a proper pipeline, but if you are more adept in coding it seems fairly easy to do whatever you want just by naming objects in your 3d app. Thanks for the pointers. My pipeline is goofy - I have very little if any control over the user properties of the objects I'm importing. I'll give the postprocessor scripting a try.
Apr 12 '10 at 11:40 PM
pickledzebra
(comments are locked)
|
