summaryrefslogtreecommitdiff
path: root/VRCSDK3Worlds/Assets/MeshBaker/Editor/MB3_TextureBakerEditor.cs
blob: 7e5632ef628d0ccafef0a3da7440d0ab139285c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//----------------------------------------------
//            MeshBaker
// Copyright © 2011-2012 Ian Deane
//----------------------------------------------
using UnityEngine;
using System.Collections;
using System.IO;
using System;
using System.Collections.Specialized;
using System.Collections.Generic;
using System.Text.RegularExpressions;

using UnityEditor;
using DigitalOpus.MB.Core;

namespace DigitalOpus.MB.MBEditor
{
    [CustomEditor(typeof(MB3_TextureBaker))]
    [CanEditMultipleObjects]
    public class MB3_TextureBakerEditor : Editor
    {

        MB3_TextureBakerEditorInternal tbe = new MB3_TextureBakerEditorInternal();

        void OnEnable()
        {
            tbe.OnEnable(serializedObject);
        }

        void OnDisable()
        {
            tbe.OnDisable();
        }

        public override void OnInspectorGUI()
        {
            tbe.DrawGUI(serializedObject, (MB3_TextureBaker)target, targets, typeof(MB3_MeshBakerEditorWindow));
        }

    }
}