- Home /
How to reference assets from editor script?
When I write a postprocessor script that shall change the texture of a mesh that I'm importing, how can I get a reference to an existing texture within an editor script so that I can modify the imported model's texture to the one I have already in my project?
Answer by Yorick · Nov 02, 2009 at 05:28 PM
I'm not sure, but give AssetDatabase.LoadAssetAtPath a try
AssetDatabase.LoadAssetAtPath would indeed be your weapon of choice.
Your answer
Follow this Question
Related Questions
Imported Model has more vertices in Unity than in other Editors 1 Answer
Help stopping texturing one model in editor from texturing all models loaded into project? 1 Answer
Rename Mesh -- editor script ? 2 Answers
Why is my model being rendered this way? 1 Answer
MMD How to export model and animations to Unity as 3rd person controller? 2 Answers