Class SUiElement
Namespace: SUI
Assembly: SonsSdk.dll
Syntax
Constructors
SUiElement(GameObject)
Declaration
public SUiElement(GameObject root)
Parameters
Type |
Name |
Description |
GameObject |
root |
|
Fields
Parent
Declaration
Field Value
Declaration
public RectTransform RectTransform
Field Value
Type |
Description |
RectTransform |
|
Root
Declaration
Field Value
Type |
Description |
GameObject |
|
_classes
Declaration
public List<string> _classes
Field Value
_id
Declaration
Field Value
Methods
As<T>()
Declaration
public T As<T>() where T : SUiElement
Returns
Type Parameters
GetClass(string)
Declaration
public List<SUiElement> GetClass(string className)
Parameters
Type |
Name |
Description |
string |
className |
|
Returns
GetOrAdd<T>()
Declaration
protected T GetOrAdd<T>() where T : Component
Returns
Type Parameters
Remove()
Declaration
SetParent(SUiElement)
Declaration
public void SetParent(SUiElement parent)
Parameters
Declaration
public void SetParent(Transform parent)
Parameters
Type |
Name |
Description |
Transform |
parent |
|