MB3_TextureBakerEditor.cs 993 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. namespace DigitalOpus.MB.MBEditor
  15. {
  16. [CustomEditor(typeof(MB3_TextureBaker))]
  17. [CanEditMultipleObjects]
  18. public class MB3_TextureBakerEditor : Editor
  19. {
  20. MB3_TextureBakerEditorInternal tbe = new MB3_TextureBakerEditorInternal();
  21. void OnEnable()
  22. {
  23. tbe.OnEnable(serializedObject);
  24. }
  25. void OnDisable()
  26. {
  27. tbe.OnDisable();
  28. }
  29. public override void OnInspectorGUI()
  30. {
  31. tbe.DrawGUI(serializedObject, (MB3_TextureBaker)target, targets, typeof(MB3_MeshBakerEditorWindow));
  32. }
  33. }
  34. }