Example #1
0
        public void SetWorldSelection(World selection, bool propagate)
        {
            if (worldSelection != selection)
            {
                worldSelection    = selection;
                showingPlayerLoop = worldSelection == null;
                if (worldSelection != null)
                {
                    if (EditorApplication.isPlaying)
                    {
                        lastPlayModeWorldSelection = worldSelection.Name;
                    }
                    else
                    {
                        lastEditModeWorldSelection = worldSelection.Name;
                    }
                }

                CreateSystemListView();
                if (propagate)
                {
                    systemListView.TouchSelection();
                }
            }
        }
Example #2
0
        public void SetWorldSelection(World selection, bool propagate)
        {
            if (worldSelection != selection)
            {
                worldSelection = selection;
                if (worldSelection != null)
                {
                    lastSelectedWorldName = worldSelection.Name;
                }

                CreateSystemListView();
                systemListView.multiColumnHeader.ResizeToFit();
                if (propagate)
                {
                    systemListView.TouchSelection();
                }
            }
        }
 void OnEnable()
 {
     selectionProxy           = ScriptableObject.CreateInstance <EntitySelectionProxy>();
     selectionProxy.hideFlags = HideFlags.HideAndDontSave;
     CreateSystemListView();
     CreateComponentGroupListView();
     CreateEntityListView();
     systemListView.TouchSelection();
     EditorApplication.playModeStateChanged += OnPlayModeStateChange;
 }