Esempio n. 1
0
 internal static void Isolate_InActiveObjects(bool useEvent = false)
 {
     WindowX.Hierarchy.SetSearchFilter(HierarchyX.GetFilterInstanceIDs(item => !item.activeSelf), "InActive");
     if (useEvent)
     {
         Event.current.Use();
     }
 }
Esempio n. 2
0
 internal static void Isolate_ObjectsHasScript(bool useEvent = false)
 {
     WindowX.Hierarchy.SetSearchFilter(HierarchyX.GetFilterInstanceIDs(item => item.numScript() > 0), "Script");
     if (useEvent)
     {
         Event.current.Use();
     }
 }
Esempio n. 3
0
 internal static void Isolate_CombinedObjects(bool useEvent = false)
 {
     WindowX.Hierarchy.SetSearchFilter(
         HierarchyX.GetFilterInstanceIDs(item => item.HasFlagChild(HideFlags.HideInHierarchy)), "Combined");
     if (useEvent)
     {
         Event.current.Use();
     }
 }
Esempio n. 4
0
 internal static void Isolate_LockedObjects(bool useEvent = false)
 {
     WindowX.Hierarchy.SetSearchFilter(
         HierarchyX.GetFilterInstanceIDs(item => item.xGetFlag(HideFlags.NotEditable)), "Locked");
     if (useEvent)
     {
         Event.current.Use();
     }
 }
Esempio n. 5
0
 ///----------------------------------- ISOLATE ---------------------------------------------------
 internal static void Isolate_MissingBehaviours(bool useEvent = false)
 {
     WindowX.Hierarchy.SetSearchFilter(
         HierarchyX.GetFilterInstanceIDs(item => item.numScriptMissing() > 0), "Missing");
     if (useEvent)
     {
         Event.current.Use();
     }
 }
Esempio n. 6
0
 internal static void Isolate_Tag(string tagName)
 {
     WindowX.Hierarchy.SetSearchFilter(HierarchyX.GetFilterInstanceIDs(item => (item.tag == tagName)), tagName);
 }
Esempio n. 7
0
    internal static void Isolate_Layer(string layerName)
    {
        var layer = LayerMask.NameToLayer(layerName);

        WindowX.Hierarchy.SetSearchFilter(HierarchyX.GetFilterInstanceIDs(item => item.layer == layer), layerName);
    }
Esempio n. 8
0
 internal static void Isolate_Component(Component c)
 {
     WindowX.Hierarchy.SetSearchFilter(
         HierarchyX.GetFilterInstanceIDs(item => (item.GetComponent(c.GetType()) != null)), c.xGetTitle(false));
 }
Esempio n. 9
0
 internal static void Isolate_ComponentType(Type t)
 {
     WindowX.Hierarchy.SetSearchFilter(
         HierarchyX.GetFilterInstanceIDs(item => (item.GetComponent(t) != null)), t.ToString());
 }