布局功能增加黑白名单功能。
This commit is contained in:
@@ -7,7 +7,7 @@ using XericLibrary.Runtime.MacroLibrary;
|
||||
|
||||
namespace XericUI.OverrideLayout
|
||||
{
|
||||
[AddComponentMenu("Xeric UI Vessel/Layout/Xeric Horizontal Layout Group")]
|
||||
[AddComponentMenu("Xeric UI Vessel/Layout/Xeric Horizontal Layout Group", 10)]
|
||||
/// <summary>
|
||||
/// Layout child layout elements below each other.
|
||||
/// </summary>
|
||||
@@ -26,8 +26,7 @@ namespace XericUI.OverrideLayout
|
||||
for (int i = 0; i < rectTransform.childCount; i++)
|
||||
{
|
||||
var rect = rectTransform.GetChild(i) as RectTransform;
|
||||
if (rect == null ||
|
||||
(layoutIgnoreInactive && !rect.gameObject.activeInHierarchy))
|
||||
if (rect == null || CanSkipLayout(rect))
|
||||
continue;
|
||||
|
||||
rect.GetComponents(typeof(ILayoutIgnorer), toIgnoreList);
|
||||
|
||||
Reference in New Issue
Block a user