示例#1
0
        public static void Open(TaskEditor editor, TaskWindowData data)
        {
            TaskWindow window = GetWindow <TaskWindow>("Task editor");

            window.minSize = new Vector2(300, 100);
            window.editor  = editor;
            window.CreateField(data);
        }
示例#2
0
 public void CreateField(TaskWindowData data)
 {
     editData        = data;
     oldName         = editData.Name;
     taskObj         = new SerializedObject(editData);
     taskName        = taskObj.FindProperty("Name");
     tastDescription = taskObj.FindProperty("Description");
 }