Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEditor;
- using UnityEngine;
- public class PlanetarySystemCreator : EditorWindow {
- [MenuItem("Window/Planetary System Creator")]
- public static void ShowWindow() {
- EditorWindow.GetWindow<PlanetarySystemCreator>();
- }
- public int c = 0;
- public void OnGUI() {
- if (GUILayout.Button("Create Planetary System")) {
- EditorApplication.SaveCurrentSceneIfUserWantsTo();
- EditorApplication.NewScene();
- CreatePlanetarySystem();
- }
- }
- public void CreatePlanetarySystem() {
- }
- }
Add Comment
Please, Sign In to add comment