Text
装飾されていないテキストを生成します。
UIText YKLayout.Text(string text, FontColor color = FontColor.DontChange)
UIText YKLayout.TextLong(string text, FontColor color = FontColor.DontChange)
UIText YKLayout.TextMedium(string text, FontColor color = FontColor.DontChange)
UIText YKLayout.TextSmall(string text, FontColor color = FontColor.DontChange)
UIText YKLayout.TextFlavor(string text, FontColor color = FontColor.DontChange)
引数
引数 | 型 | 説明 |
---|---|---|
text | string | テキスト |
color | FontColor | 色 |
サンプル
public override void OnLayout()
{
Text("テキスト1");
}