public ES2EditorRow(ES2EditorColumn column, string label, IES2Selectable obj, int rowNo, GUIStyle iconStyle, GUIStyle selectedIconStyle, int indentLevel = 0) { this.label = label; this.obj = obj; this.rowNo = rowNo; this.indentLevel = indentLevel; this.iconStyle = iconStyle; this.selectedIconStyle = selectedIconStyle; }
public ES2EditorRow AddRow(string label, IES2Selectable obj, GUIStyle iconStyle, GUIStyle selectedIconStyle, int indentLevel = 0) { ES2EditorRow row = new ES2EditorRow(this, label, obj, rows.Length, iconStyle, selectedIconStyle, indentLevel); // Add the item to the rows array. ArrayUtility.Add(ref rows, row); return(row); }