IUITree.cs 354 B

12345678910111213141516
  1. using UnityEngine;
  2. namespace XGame.Framework.UI
  3. {
  4. /// <summary>
  5. /// UI树接口
  6. /// </summary>
  7. public interface IUITree
  8. {
  9. Camera Camera { get; }
  10. Canvas GetCanvas(UILayer layer);
  11. void AddPanel(IUIPanel panel);
  12. void RemovePanel(IUIPanel panel);
  13. void SetAsLastSibling(IUIPanel panel);
  14. }
  15. }