static void PersistSelectedGameObject() { if (PPEditorWindow.currentWindow != null) { PPEditorWindow.PersistSelectedGameObject(); PPEditorWindow.currentWindow.Repaint(); } }