public void BuildAsFileSystem(string folderPath) { m_FolderAssetsPath = folderPath; if (m_StateMap == null) { m_StateMap = new Dictionary <string, ABStateUnit>(); } else { m_StateMap.Clear(); } var gen = new GenerateConfigVisitor(this); string fullPath = EditorUtils.AssetsPath2ABSPath(folderPath); ABState subState = VisitorFolder(fullPath, gen); gen.OnFolderVisitorResult(fullPath, subState); }
public void BuildAsFileSystem(string folderPath, bool rebuild = true) { m_FolderAssetsPath = folderPath; if (m_ConfigMap == null) { m_ConfigMap = new Dictionary <string, ABConfigUnit>(); } else { if (rebuild) { m_ConfigMap.Clear(); } } string fullPath = EditorUtils.AssetsPath2ABSPath(folderPath); var gen = new GenerateConfigVisitor(this); VisitorFolder(fullPath, gen); }