增加获取layer接口
This commit is contained in:
parent
28874ac17d
commit
0c0e2243d4
@ -28,6 +28,7 @@ namespace AlicizaX.UI.Runtime
|
||||
/// </summary>
|
||||
Transform UICanvasRoot { get; set; }
|
||||
|
||||
RectTransform GetLayer(UILayer layer);
|
||||
// ───────────────────────────────────────────────
|
||||
// Show 系列:异步为主,同步为辅
|
||||
// ───────────────────────────────────────────────
|
||||
|
||||
@ -50,6 +50,11 @@ namespace AlicizaX.UI.Runtime
|
||||
InitUIBlock();
|
||||
}
|
||||
|
||||
public RectTransform GetLayer(UILayer layer)
|
||||
{
|
||||
return m_AllWindowLayer[(int)layer];
|
||||
}
|
||||
|
||||
private void AddLayer(int layer)
|
||||
{
|
||||
var layerObject = new GameObject($"Layer{layer}-{(UILayer)layer}");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user