MB3_TextureBakerEditor.cs 859 B

123456789101112131415161718192021222324252627282930313233343536
  1. //----------------------------------------------
  2. // MeshBaker
  3. // Copyright © 2011-2012 Ian Deane
  4. //----------------------------------------------
  5. using UnityEngine;
  6. using System.Collections;
  7. using System.IO;
  8. using System;
  9. using System.Collections.Specialized;
  10. using System.Collections.Generic;
  11. using System.Text.RegularExpressions;
  12. using UnityEditor;
  13. using DigitalOpus.MB.Core;
  14. [CustomEditor(typeof(MB3_TextureBaker))]
  15. [CanEditMultipleObjects]
  16. public class MB3_TextureBakerEditor : Editor {
  17. MB3_TextureBakerEditorInternal tbe = new MB3_TextureBakerEditorInternal();
  18. void OnEnable()
  19. {
  20. tbe.OnEnable(serializedObject);
  21. }
  22. void OnDisable()
  23. {
  24. tbe.OnDisable();
  25. }
  26. public override void OnInspectorGUI(){
  27. tbe.DrawGUI(serializedObject, (MB3_TextureBaker) target, typeof(MB3_MeshBakerEditorWindow));
  28. }
  29. }