Exemple #1
0
 public UHeightEditor(UTerrainInspector editor)
     : base(editor)
 {
     m_Title       = "Paint Height";
     m_Intro       = "Hold down \"Ctrl + Right Mouse Button\" to paint";
     m_ShowBrushUI = false;
 }
Exemple #2
0
 public void InitializeDefaults(UTerrainInspector editor)
 {
     m_Editor = editor;
     this.OnWizardUpdate();
 }
Exemple #3
0
 public USettingsEditor(UTerrainInspector editor)
 {
     terrain = editor.terrain;
 }
Exemple #4
0
        //Texture texture {
        //    get {
        //        if (m_Selected == -1)
        //            return null;
        //        return m_Editor.terrain.data.textureData.sumMeshes[m_SelectedSM].textures[m_Selected];
        //    }
        //}

        public UTextureEditor(UTerrainInspector editor)
            : base(editor)
        {
            m_Title = "Paint Textures";
            m_Intro = "Click \"Ctrl + Right Mouse Button\" to paint";
        }
Exemple #5
0
 public UGrassEditor(UTerrainInspector editor)
     : base(editor)
 {
     m_Title = "Paint Grasses";
     m_Intro = "Click \"Ctrl + Right Mouse Button\" to paint or hold down \"Shift + Right Mouse Button\" to erase";
 }
Exemple #6
0
 public UEditor(UTerrainInspector editor)
 {
     this.m_Editor = editor;
 }
Exemple #7
0
        public static UTextureWizard GetWizard(string title, string createButtonName, UTerrainInspector editor)
        {
            UTextureWizard window = EditorWindow.GetWindow <UTextureWizard>(true, title);

            window.createButtonName = createButtonName;
            window.terrain          = editor.terrain;
            window.editor           = editor;
            window.minSize          = new Vector2(300, 500);
            return(window);
        }