Class STextboxOptions
Inheritance
STextboxOptions
Namespace: SUI
Assembly: SonsSdk.dll
Syntax
public class STextboxOptions : SUiElement<STextboxOptions, string>
Constructors
STextboxOptions(GameObject)
Declaration
public STextboxOptions(GameObject root)
Parameters
Type |
Name |
Description |
GameObject |
root |
|
Fields
InputFieldObject
Declaration
public TMP_InputField InputFieldObject
Field Value
Type |
Description |
TMP_InputField |
|
PlaceholderObject
Declaration
public TextMeshProUGUI PlaceholderObject
Field Value
Type |
Description |
TextMeshProUGUI |
|
Properties
InputTextObject
Declaration
public TMP_Text InputTextObject { get; }
Property Value
Type |
Description |
TMP_Text |
|
Methods
Background(EBackground)
Declaration
public STextboxOptions Background(EBackground background)
Parameters
Returns
Background(Sprite)
Declaration
public STextboxOptions Background(Sprite sprite)
Parameters
Type |
Name |
Description |
Sprite |
sprite |
|
Returns
CuddleLabel(bool, float)
Declaration
public STextboxOptions CuddleLabel(bool enable = true, float spacing = 10)
Parameters
Type |
Name |
Description |
bool |
enable |
|
float |
spacing |
|
Returns
HideLabel(bool)
Declaration
public STextboxOptions HideLabel(bool hide = true)
Parameters
Type |
Name |
Description |
bool |
hide |
|
Returns
InputFlexWidth(float)
Declaration
public STextboxOptions InputFlexWidth(float width)
Parameters
Type |
Name |
Description |
float |
width |
|
Returns
Notify(Action<string>)
Declaration
public STextboxOptions Notify(Action<string> action)
Parameters
Returns
OnObservaleChanged(string)
Declaration
protected override void OnObservaleChanged(string value)
Parameters
Type |
Name |
Description |
string |
value |
|
Overrides
Placeholder(string)
Declaration
public STextboxOptions Placeholder(string value)
Parameters
Type |
Name |
Description |
string |
value |
|
Returns
RegisterObservable(Observable<string>)
Declaration
protected override void RegisterObservable(Observable<string> observable)
Parameters
Overrides
UnregisterObservable(Observable<string>)
Declaration
protected override void UnregisterObservable(Observable<string> observable)
Parameters
Overrides
Value(string)
Declaration
public STextboxOptions Value(string value)
Parameters
Type |
Name |
Description |
string |
value |
|
Returns