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); }
public void CreateField(TaskWindowData data) { editData = data; oldName = editData.Name; taskObj = new SerializedObject(editData); taskName = taskObj.FindProperty("Name"); tastDescription = taskObj.FindProperty("Description"); }