Class TextDecorator
Class for decorating arbitrary strings for UnityEngine.UI.Text
Inherited Members
Namespace: Pixiv.VroidSdk.Decorator
Assembly: VRoidSDK.dll
Syntax
public sealed class TextDecorator
Constructors
TextDecorator(String)
Constructor
Declaration
public TextDecorator(string baseText)
Parameters
Type | Name | Description |
---|---|---|
String | baseText | Decoration target text |
Properties
Text
Get decoration result text
Declaration
public string Text { get; }
Property Value
Type | Description |
---|---|
String | Decorated text |
Methods
Bold()
Make bold
Declaration
public TextDecorator Bold()
Returns
Type | Description |
---|---|
TextDecorator | Decorator after decoration |
Color(String)
Add color to string with color code
Declaration
public TextDecorator Color(string colorKey)
Parameters
Type | Name | Description |
---|---|---|
String | colorKey | Color code |
Returns
Type | Description |
---|---|
TextDecorator | Post-decoration decorator |