public BuildManagerTreeView(BuildManagerTreeState state, Func <List <BuildTreeViewItem> > getData) : base(state.treeViewState, state.columnHeader) { m_DataCallback = getData; rowHeight = 20f; showAlternatingRowBackgrounds = true; showBorder = true; customFoldoutYOffset = (rowHeight - EditorGUIUtility.singleLineHeight) * 0.5f; extraSpaceBeforeIconAndLabel = 18f; Reload(); }
private void OnEnable() { if (File.Exists(kSettingsPath)) { EditorJsonUtility.FromJsonOverwrite(File.ReadAllText(kSettingsPath), this); } if (m_BuildInstructions == null) { m_BuildInstructions = new List <BuildInstructions>(); } m_TreeState = BuildManagerTreeState.CreateOrInitializeTreeState(m_TreeState); m_TreeView = new BuildManagerTreeView(m_TreeState, RegenerateBuildItems); }