Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEditor;
- namespace Simian
- {
- public class ProcessTextures : AssetPostprocessor
- {
- public void OnPreprocessTexture()
- {
- TextureImporter importer = assetImporter as TextureImporter;
- if (importer == null) return;
- //omit -S from streaming
- if (assetPath.Contains(" -S"))
- {
- importer.streamingMipmaps = false;
- //Debug.Log(assetPath);
- }
- else
- {
- importer.streamingMipmaps = true;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement