Guest User

Untitled

a guest
Oct 19th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. using UnityEditor;
  2. using UnityEngine;
  3.  
  4. public class PlanetarySystemCreator : EditorWindow {
  5. [MenuItem("Window/Planetary System Creator")]
  6. public static void ShowWindow() {
  7. EditorWindow.GetWindow<PlanetarySystemCreator>();
  8. }
  9.  
  10. public int c = 0;
  11. public void OnGUI() {
  12. if (GUILayout.Button("Create Planetary System")) {
  13. EditorApplication.SaveCurrentSceneIfUserWantsTo();
  14. EditorApplication.NewScene();
  15. CreatePlanetarySystem();
  16. }
  17. }
  18.  
  19. public void CreatePlanetarySystem() {
  20.  
  21. }
  22. }
Add Comment
Please, Sign In to add comment