- Home /
How can I edit model import settings from a script?
Specifically: I'd like to write to the animation names and frame ranges on the import settings, and make those changes stick.
I get a lot of model assets in the form of an animated model file and a text file listing the animation names and frame ranges. Each time I import one of these models I have to manually enter the frame ranges in the model's import settings inspector. Now I'm trying to automate this process.
I already know how I'll parse the file and how to make a custom EditorWindow. I've also already managed to read the import settings from the script.
How can I write to these settings and save the changes? Thanks.
Answer by Benproductions1 · Jul 14, 2013 at 03:00 AM
http://lmgtfy.com?q=unity+edit+import+setting+from+script
Google failed me. That's why I'm here. Text keywords can only take one so far. I tried researching the answer myself by trial and error, but only managed to read the settings.
It's all about using the right words :)
...
And there they are
Got it eventually. Relevant search result had helpful content but was poorly titled, resulting in my skipping it the first time. Thanks.
If thats the case, would you $$anonymous$$d accepting the answer? :)
Just did! For the benefit of others I'll link the page from that link chain that ended up helping: http://wiki.unity3d.com/index.php/FbxAnimListPostprocessor