允许xeric直线布局在名单模式下可选忽略成员
This commit is contained in:
+1
-7
@@ -43,13 +43,7 @@ namespace XericUIEditor.OverrideLayout
|
||||
EditorGUILayout.PropertyField(whiteList_list, EditorGUIUtility.TrTextContent("White List"));
|
||||
EditorGUI.indentLevel--;
|
||||
}
|
||||
else
|
||||
{
|
||||
EditorGUI.indentLevel++;
|
||||
EditorGUILayout.PropertyField(ignoreInvisible, true);
|
||||
EditorGUI.indentLevel--;
|
||||
}
|
||||
|
||||
EditorGUILayout.PropertyField(ignoreInvisible, true);
|
||||
serializedObject.ApplyModifiedProperties();
|
||||
}
|
||||
}
|
||||
@@ -92,7 +92,8 @@ namespace XericUI.OverrideLayout
|
||||
{
|
||||
if (!enableListScreening)
|
||||
return layoutIgnoreInactive && !target.gameObject.activeInHierarchy;
|
||||
return blackListMode ? BlackListContains(target) : !WhiteListContains(target);
|
||||
return (blackListMode ? BlackListContains(target) : !WhiteListContains(target)) ||
|
||||
(layoutIgnoreInactive && !target.gameObject.activeInHierarchy);
|
||||
}
|
||||
|
||||
protected bool WhiteListContains(RectTransform target)
|
||||
|
||||
Reference in New Issue
Block a user