TrueTypeFontImporter 字体导入器
Inherits from AssetImporter
AssetImporter for importing Fonts
用于导入字体的资源导入器。
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"引用。
Variables变量
-
Font size to use for importing the characters.
用于导入字符的字体大小。
-
Use this to adjust which characters should be imported.
使用这个调整哪个字符可以被导入。
-
How to render the font when generating the font Texture
当生成字体纹理时,字体怎样渲染。
-
If this is enabled, the actual font will be embedded into the asset for Dynamic fonts.
如果这个被启用,实际字体将嵌入到资源中,用于动态字体。
-
If this is enabled, font layouting will be the same as in Unity 2.x.
如果这个被启用,字体布局将同 Unity 2.x 用一样。
-
An array of font names, to be used when includeFontData is set to false.
字体名称的一个数组,用于当includeFontData设置为false时。
-
The internal font name of the TTF file.
TTF文件的内部字体名称。
-
Default style to use for dynamic fonts.
用于动态字体默认的样式。
Functions函数
Inherited members继承成员
Inherited Variables继承变量
-
The name of the object. //物体的名字
-
Should the object be hidden, saved with the scene or modifiable by the user?
物体是否被隐藏、保存在场景中或被用户修改?
Inherited Functions继承函数
Inherited Class Functions继承类函数
-
Removes a gameobject, component or asset.
删除一个游戏物体、组件或资源
-
Destroys the object obj immediately. It is strongly recommended to use Destroy instead.
立即销毁物体obj,强烈建议使用Destroy代替。
-
Makes the object target not be destroyed automatically when loading a new scene.
加载新场景的时候使目标物体不被自动销毁。
-
Returns the first active loaded object of Type type.
返回Type类型第一个激活的加载的物体。
-
Returns a list of all active loaded objects of Type type.
返回Type类型的所有激活的加载的物体列表
-
Clones the object original and returns the clone.
克隆原始物体,并返回克隆的物体
Page last updated: 2011-5-27