Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public LightingExplorerWindowTab(SerializedPropertyTable lightTable)
 {
     m_LightTable = lightTable;
 }