No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

StickyNoteData.cs 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. using System;
  2. using UnityEditor.ShaderGraph.Serialization;
  3. using UnityEngine;
  4. namespace UnityEditor.ShaderGraph
  5. {
  6. [Serializable]
  7. class StickyNoteData : JsonObject, IGroupItem, IRectInterface
  8. {
  9. [SerializeField]
  10. string m_Title;
  11. public string title
  12. {
  13. get => m_Title;
  14. set => m_Title = value;
  15. }
  16. [SerializeField]
  17. string m_Content;
  18. public string content
  19. {
  20. get => m_Content;
  21. set => m_Content = value;
  22. }
  23. [SerializeField]
  24. int m_TextSize;
  25. public int textSize
  26. {
  27. get => m_TextSize;
  28. set => m_TextSize = value;
  29. }
  30. [SerializeField]
  31. int m_Theme;
  32. public int theme
  33. {
  34. get => m_Theme;
  35. set => m_Theme = value;
  36. }
  37. [SerializeField]
  38. Rect m_Position;
  39. public Rect position
  40. {
  41. get => m_Position;
  42. set => m_Position = value;
  43. }
  44. Rect IRectInterface.rect
  45. {
  46. get => position;
  47. set
  48. {
  49. position = value;
  50. }
  51. }
  52. [SerializeField]
  53. JsonRef<GroupData> m_Group = null;
  54. public GroupData group
  55. {
  56. get => m_Group;
  57. set
  58. {
  59. if (m_Group == value)
  60. return;
  61. m_Group = value;
  62. }
  63. }
  64. public StickyNoteData() : base() { }
  65. public StickyNoteData(string title, string content, Rect position)
  66. {
  67. m_Title = title;
  68. m_Position = position;
  69. m_Content = content;
  70. }
  71. }
  72. }