Class SUI
Namespace: SUI
Assembly: SonsSdk.dll
Syntax
Constructors
SUI()
Declaration
Fields
BG_CYAN
Declaration
public static readonly Color BG_CYAN
Field Value
_panels
Declaration
public static Dictionary<string, SPanelOptions> _panels
Field Value
Properties
AssetBundle
Declaration
public static AssetBundle AssetBundle { get; }
Property Value
Type |
Description |
AssetBundle |
|
BlurBackground
Declaration
public static Sprite BlurBackground { get; }
Property Value
Fonts
Declaration
public static IReadOnlyList<TMP_FontAsset> Fonts { get; }
Property Value
IsInitialized
Declaration
public static bool IsInitialized { get; }
Property Value
SBackground
Declaration
public static SContainerOptions SBackground { get; }
Property Value
Declaration
public static SBgButtonOptions SBgButton { get; }
Property Value
Declaration
public static SButtonOptions SButton { get; }
Property Value
SContainer
Declaration
public static SContainerOptions SContainer { get; }
Property Value
SDiv
Declaration
public static SContainerOptions SDiv { get; }
Property Value
SHorizontal
Declaration
public static SContainerOptions SHorizontal { get; }
Property Value
SImage
Declaration
public static SImageOptions SImage { get; }
Property Value
SLabel
Declaration
public static SLabelOptions SLabel { get; }
Property Value
SLabelDivider
Declaration
public static SLabelDividerOptions SLabelDivider { get; }
Property Value
SMaskedImage
Declaration
public static SMaskedImageOptions SMaskedImage { get; }
Property Value
Declaration
public static SMenuButtonOptions SMenuButton { get; }
Property Value
SOptions
Declaration
public static SOptionsOptions SOptions { get; }
Property Value
Declaration
public static SScrollContainerOptions SScrollContainer { get; }
Property Value
SSlider
Declaration
public static SSliderOptions SSlider { get; }
Property Value
SSprite
Declaration
public static SSpriteOptions SSprite { get; }
Property Value
STabController
Declaration
public static STabControllerOptions STabController { get; }
Property Value
STextbox
Declaration
public static STextboxOptions STextbox { get; }
Property Value
SToggle
Declaration
public static SToggleOptions SToggle { get; }
Property Value
SUIViewport
Declaration
public static Canvas SUIViewport { get; }
Property Value
SVertical
Declaration
public static SContainerOptions SVertical { get; }
Property Value
SpriteBackground
Declaration
public static Sprite SpriteBackground { get; }
Property Value
SpriteBackground400ppu
Declaration
public static Sprite SpriteBackground400ppu { get; }
Property Value
Sprites
Declaration
public static IReadOnlyList<Sprite> Sprites { get; }
Property Value
Methods
ColorFromString(string)
Declaration
public static Color ColorFromString(string color)
Parameters
Type |
Name |
Description |
string |
color |
|
Returns
Declaration
public static SPanelOptions CreatePanel(Transform parent = null)
Parameters
Type |
Name |
Description |
Transform |
parent |
|
Returns
GetBackgroundSprite(EBackground)
Declaration
public static Sprite GetBackgroundSprite(EBackground type)
Parameters
Returns
GetFont(EFont)
Declaration
public static TMP_FontAsset GetFont(SUI.EFont font)
Parameters
Returns
Type |
Description |
TMP_FontAsset |
|
GetPanel(string)
Declaration
public static SPanelOptions GetPanel(string id)
Parameters
Type |
Name |
Description |
string |
id |
|
Returns
GetSprite(string)
Declaration
public static Sprite GetSprite(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
Returns
RegisterNewPanel(string, bool, KeyCode?)
Creates a new panel and registers it to the sui system.
Declaration
public static SPanelOptions RegisterNewPanel(string id, bool enableInput = false, KeyCode? toggleKey = null)
Parameters
Type |
Name |
Description |
string |
id |
The id by which you can manage the panel later. Needs to be unique
|
bool |
enableInput |
If true enables the mouse and disables game keyboard input once the panel is showing
|
KeyCode? |
toggleKey |
Optional key by which you can toggle the panel
|
Returns
Declaration
public static bool ToggleMenuPanel(string id)
Parameters
Type |
Name |
Description |
string |
id |
|
Returns
Declaration
public static SPanelOptions ToggleMenuPanel(string id, bool show)
Parameters
Returns
TogglePanel(string)
Declaration
public static bool TogglePanel(string id)
Parameters
Type |
Name |
Description |
string |
id |
|
Returns
TogglePanel(string, bool)
Declaration
public static SPanelOptions TogglePanel(string id, bool show)
Parameters
Returns