添加水平与垂直布局的重写管理,支持对不可见对象的布局计算。

添加支持自动可见性剔除的滚动管理器。
This commit is contained in:
2025-09-17 19:51:16 +08:00
parent 28a96e1fd8
commit ddb6806a9b
17 changed files with 590 additions and 6 deletions
@@ -0,0 +1,20 @@
using Sirenix.OdinInspector;
using UnityEngine.UI;
namespace XericUI.OverrideLayout
{
public abstract class XericHorizontalOrVerticalLayoutGroup : HorizontalOrVerticalLayoutGroup
{
/// <summary>
/// 布局时忽略不可见的成员
/// </summary>
public bool layoutIgnoreInactive = false;
#if UNITY_EDITOR
protected override void Update()
{
base.Update();
}
#endif
}
}