Class SLabelOptions
Inheritance
SLabelOptions
Namespace: SUI
Assembly: SonsSdk.dll
Syntax
public class SLabelOptions : SUiElement<SLabelOptions, string>
Constructors
SLabelOptions(GameObject)
Declaration
public SLabelOptions(GameObject root)
Parameters
Type |
Name |
Description |
GameObject |
root |
|
Methods
Alignment(TextAlignmentOptions)
Declaration
public SLabelOptions Alignment(TextAlignmentOptions alignment)
Parameters
Type |
Name |
Description |
TextAlignmentOptions |
alignment |
|
Returns
AutoSizeContainer(bool)
Declaration
public SLabelOptions AutoSizeContainer(bool enable = true)
Parameters
Type |
Name |
Description |
bool |
enable |
|
Returns
Font(EFont)
Declaration
public SLabelOptions Font(SUI.EFont font)
Parameters
Returns
Font(TMP_FontAsset)
Declaration
public SLabelOptions Font(TMP_FontAsset font)
Parameters
Type |
Name |
Description |
TMP_FontAsset |
font |
|
Returns
FontSpacing(float)
Declaration
public SLabelOptions FontSpacing(float spacing)
Parameters
Type |
Name |
Description |
float |
spacing |
|
Returns
LineSpacing(float)
Declaration
public SLabelOptions LineSpacing(float spacing)
Parameters
Type |
Name |
Description |
float |
spacing |
|
Returns
Margin(int)
Declaration
public SLabelOptions Margin(int margin)
Parameters
Type |
Name |
Description |
int |
margin |
|
Returns
Margin(int, int)
Declaration
public SLabelOptions Margin(int leftRight, int topBottom)
Parameters
Type |
Name |
Description |
int |
leftRight |
|
int |
topBottom |
|
Returns
Margin(int, int, int, int)
Declaration
public SLabelOptions Margin(int left, int right, int top, int bottom)
Parameters
Returns
OnObservaleChanged(string)
Declaration
protected override void OnObservaleChanged(string value)
Parameters
Type |
Name |
Description |
string |
value |
|
Overrides
RegisterObservable(Observable<string>)
Declaration
protected override void RegisterObservable(Observable<string> observable)
Parameters
Overrides
Wrap(bool)
Declaration
public SLabelOptions Wrap(bool wrap)
Parameters
Type |
Name |
Description |
bool |
wrap |
|
Returns