INestedView.cs 825 B

12345678910111213141516171819202122232425262728
  1. using UnityEngine;
  2. using XGame.Framework.Interfaces;
  3. namespace XGame.Framework.UI
  4. {
  5. /// <summary>
  6. /// 嵌套UI
  7. /// </summary>
  8. public interface INestedView : IActiveable
  9. {
  10. public Vector3 LocalPosition { get; set; }
  11. public Vector3 Position { get; set; }
  12. public Vector3 Rotation { get; set; }
  13. }
  14. /// <summary>
  15. /// 框架用INestedView接口
  16. /// </summary>
  17. public interface INestedInternal : INestedView
  18. {
  19. /// <summary>
  20. /// 初始化
  21. /// </summary>
  22. /// <param name="context"></param>
  23. /// <param name="nested"></param>
  24. /// <param name="isStatic">是否是静态的(其他预制的子节点)</param>
  25. void Init(UIContext context, IUINested nested, bool isStatic);
  26. IUINested Nested { get; }
  27. }
  28. }