![]() |
AirControl
1.3.0
Open Source, Modular, and Extensible Flight Simulator For Deep Learning Research
|
Settings related to text. 文本的相关设置。 More...
Public Member Functions | |
TextStyle (int fontSize) | |
TextStyle (int fontSize, FontStyle fontStyle) | |
TextStyle (int fontSize, FontStyle fontStyle, Color color) | |
TextStyle (int fontSize, FontStyle fontStyle, Color color, int rorate) | |
void | Copy (TextStyle textStyle) |
void | UpdateAlignmentByLocation (Location location) |
Color | GetColor (Color defaultColor) |
int | GetFontSize (ComponentTheme defaultTheme) |
TextAnchor | GetAlignment (TextAnchor systemAlignment) |
![]() | |
virtual void | SetVerticesDirty () |
virtual void | ClearVerticesDirty () |
virtual void | SetComponentDirty () |
virtual void | ClearComponentDirty () |
virtual void | ClearDirty () |
virtual void | SetAllDirty () |
Properties | |
float | rotate [get, set] |
Rotation of text. 文本的旋转。 [default: 0f ] More... | |
Vector2 | offset [get, set] |
the offset of position. 坐标偏移。 [Default: Vector2.zero ] More... | |
Vector3 | offsetv3 [get] |
Color | color [get, set] |
the color of text. 文本的颜色。 [default: Color.clear ] More... | |
Color | backgroundColor [get, set] |
the color of text. 文本的背景颜色。 [default: Color.clear ] More... | |
Font | font [get, set] |
the font of text. When null , the theme's font is used by default. 文本字体。 [default: null] More... | |
int | fontSize [get, set] |
font size. 文本字体大小。 [default: 18] More... | |
FontStyle | fontStyle [get, set] |
font style. 文本字体的风格。 [default: FontStyle.Normal] More... | |
float | lineSpacing [get, set] |
text line spacing. 行间距。 [default: 1f] More... | |
bool | autoWrap [get, set] |
是否自动换行。 More... | |
bool | autoAlign [get, set] |
文本是否让系统自动选对齐方式。为false时才会用alignment。 More... | |
TextAnchor | alignment [get, set] |
对齐方式。 More... | |
![]() | |
virtual bool | vertsDirty [get] |
图表重绘标记。 More... | |
virtual bool | componentDirty [get] |
组件重新初始化标记。 More... | |
bool | anyDirty [get] |
需要重绘图表或重新初始化组件。 More... | |
Painter | painter [get, set] |
Action | refreshComponent [get, set] |
GameObject | gameObject [get, set] |
Additional Inherited Members | |
![]() | |
bool | m_VertsDirty |
bool | m_ComponentDirty |
Painter | m_Painter |
Settings related to text. 文本的相关设置。
Definition at line 21 of file TextStyle.cs.
|
getset |
对齐方式。
Definition at line 142 of file TextStyle.cs.
|
getset |
文本是否让系统自动选对齐方式。为false时才会用alignment。
Definition at line 134 of file TextStyle.cs.
|
getset |
是否自动换行。
Definition at line 126 of file TextStyle.cs.
|
getset |
the color of text. 文本的背景颜色。 [default: Color.clear
]
Definition at line 78 of file TextStyle.cs.
|
getset |
the color of text. 文本的颜色。 [default: Color.clear
]
Definition at line 68 of file TextStyle.cs.
|
getset |
the font of text. When null
, the theme's font is used by default. 文本字体。 [default: null]
Definition at line 88 of file TextStyle.cs.
|
getset |
font size. 文本字体大小。 [default: 18]
Definition at line 98 of file TextStyle.cs.
|
getset |
font style. 文本字体的风格。 [default: FontStyle.Normal]
Definition at line 108 of file TextStyle.cs.
|
getset |
text line spacing. 行间距。 [default: 1f]
Definition at line 118 of file TextStyle.cs.
|
getset |
the offset of position. 坐标偏移。 [Default: Vector2.zero
]
Definition at line 55 of file TextStyle.cs.
|
getset |
Rotation of text. 文本的旋转。 [default: 0f
]
Definition at line 45 of file TextStyle.cs.