用户工具

站点工具


侧边栏



Unity3D中文文档

script:unityengine:classes:characterinfo:characterinfo

CharacterInfo 字符信息

struct in UnityEngine

Description 描述

Specification for how to render a character from the font texture. See Font.characterInfo.
字体纹理如何渲染字符的规格。参考Font.characterInfo。

See Also: Example at Font.RequestCharactersInTexture.

Variables 变量

advanceThe horizontal distance from the origin of this character to the origin of the next character.
从该字符的原点到下一个字符的原点的水平距离。
bearingThe horizontal distance from the origin of this glyph to the begining of the glyph image.
从该字形的原点到字形图像的起点的水平距离。
glyphHeightThe height of the glyph image.
字形图像的高度。
glyphWidthThe width of the glyph image.
字形图像的宽度。
indexUnicode value of the character.
字符的Unicode值。
maxXThe maximum extend of the glyph image in the x-axis.
字形图像在X轴上的最大延伸。
maxYThe maximum extend of the glyph image in the y-axis.
自形图像在y轴上的最大延伸。
minXThe minium extend of the glyph image in the x-axis.
字形图像在X轴上的最小延伸。
minYThe minimum extend of the glyph image in the y-axis.
字形图像在Y轴上的最小值。
sizeThe size of the character or 0 if it is the default font size.
该字符的大小,默认字体大小为0。
styleThe style of the character.
字符的样式。
uvBottomLeftThe uv coordinate matching the bottom left of the glyph image in the font texture.
UV坐标匹配的字体纹理的字形图像的左下角。
uvBottomRightThe uv coordinate matching the bottom right of the glyph image in the font texture.
UV坐标匹配的字体纹理的字形图像的右下角。
uvTopLeftThe uv coordinate matching the top left of the glyph image in the font texture.
UV坐标匹配的字体纹理的字形图像的左上角。
uvTopRightThe uv coordinate matching the top right of the glyph image in the font texture.
UV坐标匹配的字体纹理的字形图像的右上角。
script/unityengine/classes/characterinfo/characterinfo.txt · 最后更改: 2016/08/02 05:28 (外部编辑)