EditorPanel.Designer.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. using System;
  2. using UnityEngine;
  3. using UnityEngine.UI;
  4. using QFramework;
  5. namespace QFramework.MREditor
  6. {
  7. // Generate Id:9da210af-ac61-4795-9114-ce6a4baa8af3
  8. public partial class EditorPanel
  9. {
  10. public const string Name = "EditorPanel";
  11. [SerializeField]
  12. public MaterialBtn MaterialBtn;
  13. [SerializeField]
  14. public SingleMaterial SingleMaterial;
  15. [SerializeField]
  16. public SpoitBtn SpoitBtn;
  17. [SerializeField]
  18. public UIEditor UIEditor;
  19. [SerializeField]
  20. public UIAddMaterial UIAddMaterial;
  21. [SerializeField]
  22. public UIMaterials UIMaterials;
  23. [SerializeField]
  24. public UISpoits UISpoits;
  25. private EditorPanelData mPrivateData = null;
  26. protected override void ClearUIComponents()
  27. {
  28. MaterialBtn = null;
  29. SingleMaterial = null;
  30. SpoitBtn = null;
  31. UIEditor = null;
  32. UIAddMaterial = null;
  33. UIMaterials = null;
  34. UISpoits = null;
  35. mData = null;
  36. }
  37. public EditorPanelData Data
  38. {
  39. get
  40. {
  41. return mData;
  42. }
  43. }
  44. EditorPanelData mData
  45. {
  46. get
  47. {
  48. return mPrivateData ?? (mPrivateData = new EditorPanelData());
  49. }
  50. set
  51. {
  52. mUIData = value;
  53. mPrivateData = value;
  54. }
  55. }
  56. }
  57. }