1
This commit is contained in:
@@ -50,6 +50,10 @@ namespace BITKit.GameEditor
|
||||
var listViewContainer = container.Create<VisualElement>();
|
||||
|
||||
var createContainer = listViewContainer.Create<VisualElement>();
|
||||
|
||||
var exportButton = leftSlider.Create<Button>();
|
||||
exportButton.text = "导出";
|
||||
exportButton.clicked += ExportData;
|
||||
|
||||
createContainer.style.flexDirection = FlexDirection.Row;
|
||||
|
||||
@@ -99,6 +103,19 @@ namespace BITKit.GameEditor
|
||||
$"{GetType().Name} 已初始化,从{AssetsPath}获取到{List.Count}个{typeof(T).Name}");
|
||||
}
|
||||
|
||||
private void ExportData()
|
||||
{
|
||||
var exportPath = EditorUtility.OpenFolderPanel("select path", "",typeof(T).FullName);
|
||||
|
||||
if(string.IsNullOrEmpty(exportPath))return;
|
||||
|
||||
ExportData(exportPath);
|
||||
}
|
||||
protected virtual void ExportData(string path)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected virtual void ItemsChosen(IEnumerable<object> obj)
|
||||
{
|
||||
var selected = obj.FirstOrDefault() as Object;
|
||||
|
Reference in New Issue
Block a user