static void CreatePrefab() { optionChosen = menuOption.nomenu; GameObject[] selectedGameObjects = Selection.gameObjects; foreach (GameObject gameObject in selectedGameObjects) { string objectsPath = "Assets/" + gameObject.name + ".prefab"; Debug.Log("Custom Color Chosen"); PrefabTool window = ScriptableObject.CreateInstance <PrefabTool>(); window.position = new Rect(Screen.width / 2, Screen.height / 2, 250, 300); window.ShowPopup(); window.Show(); window.Focus(); window.Repaint(); } }
static void Prefab_PrefabTool() { PrefabTool.ShowView(); }