Skip to main content

UIPanel

Namespace:FairyGUI
Source:Assets/Scripts/UI/UIPanel.cs (line 24)

public class UIPanel : MonoBehaviour, EMRenderTarget

Interfaces:EMRenderTarget

Fields​

componentName​

public string componentName;

Source:UI/UIPanel.cs (line 41)

fitScreen​

public FitScreen fitScreen;

Source:UI/UIPanel.cs (line 46)

packageName​

public string packageName;

Source:UI/UIPanel.cs (line 36)

sortingOrder​

public int sortingOrder;

Source:UI/UIPanel.cs (line 51)

Methods​

ApplyModifiedProperties(bool, bool)​

public void ApplyModifiedProperties(bool sortingOrderChanged, bool fitScreenChanged);
ParameterTypeDescription
sortingOrderChangedbool
fitScreenChangedbool

Source:UI/UIPanel.cs (line 489)

CacheNativeChildrenRenderers()​

public void CacheNativeChildrenRenderers();

Source:UI/UIPanel.cs (line 288)

CreateUI()​

public void CreateUI();

Source:UI/UIPanel.cs (line 231)

EM_BeforeUpdate()​

public void EM_BeforeUpdate();

Source:UI/UIPanel.cs (line 578)

EM_Reload()​

public void EM_Reload();

Source:UI/UIPanel.cs (line 611)

EM_Update(UpdateContext)​

public void EM_Update(UpdateContext context);
ParameterTypeDescription
contextUpdateContext

Source:UI/UIPanel.cs (line 590)

GetUIWorldPosition()​

public Vector3 GetUIWorldPosition();

Source:UI/UIPanel.cs (line 539)

MoveUI(Vector3)​

public void MoveUI(Vector3 delta);
ParameterTypeDescription
deltaVector3

Source:UI/UIPanel.cs (line 528)

SetHitTestMode(HitTestMode)​

public void SetHitTestMode(HitTestMode value);
ParameterTypeDescription
valueHitTestMode

Source:UI/UIPanel.cs (line 260)

SetSortingOrder(int, bool)​

public void SetSortingOrder(int value, bool apply);

Change the sorting order of the panel in runtime.

ParameterTypeDescription
valueintsorting order value
applyboolfalse if you dont want the default sorting behavior. e.g. call Stage.SortWorldSpacePanelsByZOrder later.

Source:UI/UIPanel.cs (line 247)

Properties​

EM_sortingOrder​

public int EM_sortingOrder { get; }

Source:UI/UIPanel.cs (line 573)

container​

public Container container { get; private set; }

Source:UI/UIPanel.cs (line 31)

ui​

public GComponent ui { get; }

Source:UI/UIPanel.cs (line 212)