-
Notifications
You must be signed in to change notification settings - Fork 829
/
Copy pathGroupData.cs
47 lines (38 loc) · 939 Bytes
/
GroupData.cs
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
42
43
44
45
46
47
using System;
using UnityEditor.ShaderGraph.Serialization;
using UnityEngine;
namespace UnityEditor.ShaderGraph
{
[Serializable]
public class GroupData : JsonObject, IRectInterface
{
[SerializeField]
string m_Title;
public string title
{
get { return m_Title; }
set { m_Title = value; }
}
[SerializeField]
Vector2 m_Position;
public Vector2 position
{
get { return m_Position; }
set { m_Position = value; }
}
Rect IRectInterface.rect
{
get => new Rect(position, Vector2.one);
set
{
position = value.position;
}
}
public GroupData() : base() { }
public GroupData(string title, Vector2 position)
{
m_Title = title;
m_Position = position;
}
}
}