duck

duck

May 18th, 2010
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     void OnPostprocessTexture(Texture2D obj)
  2.     {
  3.         string path = AssetDatabase.GetAssetPath(obj);
  4.         TextureImporter textureImporter = (TextureImporter)AssetImporter.GetAtPath(path);
  5.         textureImporter.maxTextureSize = 512;
  6.         Debug.Log("Applied custom texture settings to: " + path);
  7.     }
Advertisement
Add Comment
Please, Sign In to add comment