Style settings for a GUI element.
This class contains all information for how a gui element should be rendered. It contains information for font, icon placement, background images, and spacing. It does not contain information for what it contains - just defines how any text rendered with this style should be displayed. It does not define what interactions can occur with the element, but defines the display settings commonly used in by the interactions.
这个类包含用于界面元素如何渲染的所有信息。它包含用于字体、图标位置、背景图片和间距。它不包含对于它包含什么的信息 - 仅仅定义用这个样式显示的文本如何被渲染。它不定义对于这个元素可以发生什么交互,但是定义常用于交互的显示设置。
-
The name of this GUIStyle. Used for getting them based on name....
这个GUIStyle的名字。用于获取基于名字的样式。
-
Rendering settings for when the component is displayed normally.
用于该组件正常显示时的渲染设置。
-
Rendering settings for when the mouse is hovering over the control
用于当鼠标悬停在控件之上时的渲染设置。
-
Rendering settings for when the control is pressed down.
用于当控件被鼠标按下时的渲染设置。
-
Rendering settings for when the control is turned on.
用于当控件被打开时的渲染设置。
-
Rendering settings for when the control is turned on and the mouse is hovering it.
用于当控件被打开并且鼠标悬停在上面时的渲染设置。
-
Rendering settings for when the element is turned on and pressed down.
用于当元素被打开并且被按下时的渲染设置。
-
Rendering settings for when the element has keyboard focus.
用于当元素有键盘焦点时的渲染设置。
-
Rendering settings for when the element has keyboard and is turned on.
用于当元素有键盘焦点并且被打开时的渲染设置。
-
The borders of all background images.
所有背景图片的边框。
-
The margins between elements rendered in this style and any other GUI elements
外边距是指在这个样式渲染的元素和任何其他GUI元素之间的间距
-
Space from the edge of GUIStyle to the start of the contents.
从GUIStyle边界到内容开始的间距。
-
Extra space to be added to the background image.
添加到背景图片的额外空间。
-
The font to use for rendering. If null, the default font for the current GUISkin is used instead.
用于渲染的字体,如果为null,当前的GUISkin的默认字体将被使用。
-
How image and text of the GUIContent is combined.
GUIContent的图片和文本如何组合。
-
Text alignment.
文本对齐。
-
Word wrap the text?
文本要自动换行么?
-
What to do when the contents to be rendered is too large to fit within the area given.
当渲染的内容太大而不能匹配给定的区域内时,使用这个。
-
Pixel offset to apply to the content of this GUIstyle
像素偏移适用于这个GUIstyle内容。
-
If non-0, any GUI elements rendered with this style will have the width specified here.
如果为非0,任意这个类型的渲染的GUI元素将具有这里指定的宽度。
-
The font size to use (for dynamic fonts)
使用字体大小(用于动态字体)
-
The font style to use (for dynamic fonts)
使用字体样式(用于动态字体)
-
If non-0, any GUI elements rendered with this style will have the height specified here.
如果为非0,任意这个类型的渲染的GUI元素将具有这里指定的高度。
-
Can GUI elements of this style be stretched horizontally for better layouting?
为更好的布局这个样式的GUI元素可以水平拉伸么?
-
Can GUI elements of this style be stretched vertically for better layouting?
为更好的布局这个样式的GUI元素可以垂直拉伸么?
-
The height of one line of text with this style, measured in pixels. (Read Only)
这个样式的文本一行的高度,以像素计算。(只读)