예제 #1
0
        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();
        }
예제 #2
0
        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);
        }