public LightingExplorerTab(string title, Func <UnityEngine.Object[]> objects, Func <LightingExplorerTableColumn[]> columns) { if (objects() == null) { throw new ArgumentException("Objects are not allowed to be null", "objects"); } if (columns() == null) { throw new ArgumentException("Columns are not allowed to be null", "columns"); } m_LightTable = new SerializedPropertyTable(title.Replace(" ", string.Empty), new SerializedPropertyDataStore.GatherDelegate(objects), () => { return(columns().Select(item => item.internalColumn).ToArray()); }); m_Title = EditorGUIUtility.TrTextContent(title); }
public LightingExplorerWindowTab(SerializedPropertyTable lightTable) { m_LightTable = lightTable; }