private void OnEnable() { searchField = new EditorSearchField(); objects.Clear(); objects.AddRange(Selection.objects); }
private void OnEnable() { //isOpen = true; //_scrollPosition = Vector2.zero; //Selection.selectionChanged += TrackSelectionChange; //↑ all old searchField = new EditorSearchField(); GenerateGUIContents(); //Selection.selectionChanged += Debug.Log("enable"); }