| | |
| | | var _detail = _list[i];
|
| | | var _fatherDetail = _detail.fatherDetail;
|
| | | GUILayout.BeginHorizontal();
|
| | | GUILayout.Label(StringUtility.Contact((i + 1).ToString(), ".", "Path: "));
|
| | | var _path = StringUtility.Contact(_detail.fatherDetail, _fatherDetail == string.Empty ? string.Empty : "/", _detail.name);
|
| | | GUILayout.Label(StringUtility.Concat((i + 1).ToString(), ".", "Path: "));
|
| | | var _path = StringUtility.Concat(_detail.fatherDetail, _fatherDetail == string.Empty ? string.Empty : "/", _detail.name);
|
| | | GUILayout.TextField(_path);
|
| | | if (_fatherDetail != string.Empty && GUILayout.Button("Goto"))
|
| | | {
|
| | |
| | | }
|
| | | GUILayout.BeginHorizontal();
|
| | | var _fatherDetail = _detail.fatherDetail;
|
| | | GUILayout.Label(StringUtility.Contact((i + 1).ToString(), ".", "Path: "));
|
| | | var _path = StringUtility.Contact(_detail.fatherDetail, _fatherDetail == string.Empty ? string.Empty : "/", _detail.name);
|
| | | GUILayout.Label(StringUtility.Concat((i + 1).ToString(), ".", "Path: "));
|
| | | var _path = StringUtility.Concat(_detail.fatherDetail, _fatherDetail == string.Empty ? string.Empty : "/", _detail.name);
|
| | | GUILayout.TextField(_path);
|
| | | if (_fatherDetail != string.Empty && GUILayout.Button("Goto"))
|
| | | {
|
| | |
| | | var _match = _matchs[_index - 1];
|
| | | GetRefComponent(_list[_index], _list[_index].Split('\n'), _match.Groups[1].Value);
|
| | | bool isCancel = EditorUtility.DisplayCancelableProgressBar("查找引用资源",
|
| | | StringUtility.Contact(_index.ToString(), "/", _list.Count.ToString()), (float)_index / (float)_list.Count);
|
| | | StringUtility.Concat(_index.ToString(), "/", _list.Count.ToString()), (float)_index / (float)_list.Count);
|
| | | _index++;
|
| | | if (isCancel || _index >= _list.Count)
|
| | | {
|
| | |
| | | _details.Add(_detail);
|
| | | }
|
| | | isCancel = EditorUtility.DisplayCancelableProgressBar("查找引用资源",
|
| | | StringUtility.Contact(_index.ToString(), "/", _keys.Count.ToString()), (float)_index / (float)_keys.Count);
|
| | | StringUtility.Concat(_index.ToString(), "/", _keys.Count.ToString()), (float)_index / (float)_keys.Count);
|
| | | _index++;
|
| | | if (isCancel || _index >= _keys.Count)
|
| | | {
|
| | |
| | | if (_detail.rectId == _fatherId)
|
| | | {
|
| | | var _father = GetFatherDetail(_detail.fatherId);
|
| | | return StringUtility.Contact(GetFatherDetail(_detail.fatherId), _father == string.Empty ? string.Empty : "/", _detail.name);
|
| | | return StringUtility.Concat(GetFatherDetail(_detail.fatherId), _father == string.Empty ? string.Empty : "/", _detail.name);
|
| | | }
|
| | | }
|
| | | return string.Empty;
|
| | |
| | | public static void DisplayExternalPath()
|
| | | {
|
| | | GUILayout.BeginHorizontal();
|
| | | GUILayout.Label(StringUtility.Contact("文件夹路径:", m_ExternalFilePath));
|
| | | GUILayout.Label(StringUtility.Concat("文件夹路径:", m_ExternalFilePath));
|
| | | if (GUILayout.Button("选择文件根路径"))
|
| | | {
|
| | | var _path = EditorUtility.OpenFolderPanel("根路径", "", "");
|