Skip to content

format

typescript
UIComponent.uiSortingLayer

class: UIComponent

description

The sorting layer of the current UI.

parameter

param_nametypedescription

reture

typedescription
number

code example

typescript
let go = new GameObject("ui");
let uiComponent = go.AddComponent<UIComponent>(UIComponent);
uiComponent.guiPrefab = Resources.Load<GUIPrefab>(GUIPrefab, "<UUID>");//<UUID>- is the UUID of the UI file

uiComponent.uiSortingLayer;