TextureImporterNPOTScale 纹理导入非二次方缩放
Enumeration
Scaling mode for non power of two textures in TextureImporter.
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.
注意:这是一个编辑器类,如果想使用它你需要把它放到工程目录下的Assets/Editor文件夹下。编辑器类在UnityEditor命名空间下。所以当使用C#脚本时,你需要在脚本前面加上 "using UnityEditor"引用。
参见: TextureImporter.npotScale.
Values值
-
Keep non power of two textures as is.
保持非二次方纹理。 -
Scale to nearest power of two.
缩放到最接近二次方。 -
Scale to larger power of two.
缩放到更大二次方。 -
Scale to smaller power of two.
缩放到较小二次方。
最后修改:2011年7月19日 Tuesday 19:44