|
Scaling mode for non power of two textures in TextureImporter.
Note: This is an editor class. To use it you have to place your script in Assets/Editor inside your project folder. Editor classes are in the UnityEditor namespace so for C# scripts you need to add "using UnityEditor;" at the beginning of the script.
See Also: TextureImporter.npotScale.
None |
Keep non power of two textures as is. |
ToNearest |
Scale to nearest power of two. |
ToLarger |
Scale to larger power of two. |
ToSmaller |
Scale to smaller power of two. |