Beispiel #1
0
 void OnEnable()
 {
     ps = (PrefabSwitcher)target;
     Selection.selectionChanged += delegate()
     {
         ps?.setOldObjs(new List <GameObject>(
                            Selection.GetFiltered <GameObject>(SelectionMode.Editable)
                            ));
     };
 }
 private void OnEnable()
 {
     _target = target as PrefabSwitcher;
 }
Beispiel #3
0
    public static void ShowWindow()
    {
        PrefabSwitcher prefabSwitcherWindow = (PrefabSwitcher)EditorWindow.GetWindow(typeof(PrefabSwitcher));

        prefabSwitcherWindow.titleContent = new GUIContent(" Prefab Switcher", EditorGUIUtility.FindTexture("Prefab Icon"));
    }