添加水平与垂直布局的重写管理,支持对不可见对象的布局计算。
添加支持自动可见性剔除的滚动管理器。
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user