protected override DragAndDropVisualMode HandleDragAndDrop(DragAndDropArgs args) { if (IsValidDragDrop(args)) { if (args.performDrop) { AssetBundleModel.Model.MoveAssetToBundle(DragAndDrop.paths, m_SourceBundles[0].m_Name.bundleName, m_SourceBundles[0].m_Name.variant); AssetBundleModel.Model.ExecuteAssetMove(); foreach (var bundle in m_SourceBundles) { bundle.RefreshAssetList(); } m_Controller.UpdateSelectedBundles(m_SourceBundles); } return(DragAndDropVisualMode.Copy);//Move; } return(DragAndDropVisualMode.Rejected); }
protected override void SelectionChanged(IList <int> selectedIds) { var selectedBundles = new List <AssetBundleModel.BundleInfo>(); if (selectedIds != null) { foreach (var id in selectedIds) { var item = FindItem(id, rootItem) as AssetBundleModel.BundleTreeItem; if (item != null && item.bundle != null) { item.bundle.RefreshAssetList(); selectedBundles.Add(item.bundle); } } } m_Controller.UpdateSelectedBundles(selectedBundles); }