Example #1
0
 public void Refresh()
 {
     if (treeView != null)
     {
         treeView.Reload();
     }
 }
Example #2
0
            public void Dispose()
            {
                // Check if Unity's selection has changed
                GameObject[] newSelection = Selection.gameObjects;
                if (newSelection.Length == oldSelection.Length)
                {
                    int index;
                    for (index = 0; index < newSelection.Length; index++)
                    {
                        if (oldSelection[index] != newSelection[index])
                        {
                            break;
                        }
                    }

                    if (index == newSelection.Length)
                    {
                        return;
                    }
                }

                hierarchy.Reload();
                hierarchy.SetSelection(Selection.instanceIDs, TreeViewSelectionOptions.RevealAndFrame);
            }