private void Init() { m_ColumnRatios = new float[ColumnCount]; ResetColumnRatios(); m_ResizingFlags = new bool[ColumnCount - 1]; ResetResizingFlags(); m_ColumnMargins = new float[ColumnCount + 1]; m_ColumnWidths = new float[ColumnCount]; m_RootDirsSection = new RootDirsSection(this); m_AssetsSection = new AssetsSection(this); m_AssetBundlesSection = new AssetBundlesSection(this); m_AssetBundleContentsSection = new AssetBundleContentsSection(this); m_BottomSection = new BottomSection(this); m_AssetInfoSatelliteDatas = new Dictionary <string, AssetInfoSatelliteData>(); m_SelectedAssetInfos = new HashSet <AssetBundleOrganizer.AssetInfo>(); m_AssetBundleInfoSatelliteDatas = new Dictionary <string, AssetBundleInfoSatelliteData>(); m_DrawColumnDelegates = new Action[ColumnCount]; m_DrawColumnDelegates[0] = m_RootDirsSection.Draw; m_DrawColumnDelegates[1] = m_AssetsSection.Draw; m_DrawColumnDelegates[2] = m_AssetBundlesSection.Draw; m_DrawColumnDelegates[3] = m_AssetBundleContentsSection.Draw; m_AssetBundleOrganizer = new AssetBundleOrganizer(); RefreshAssetForest(); RefreshAssetBundleTree(); m_NeedRepaint = true; }
public AssetBundleInfosProvider(AssetBundleOrganizer organizer) { if (organizer == null) { throw new ArgumentNullException("organizer"); } m_Organizer = organizer; }
private AssetBundleInfosProvider PopulateAssetBundleInfos() { var organizer = new AssetBundleOrganizer(); organizer.RefreshAssetForest(); organizer.RefreshAssetBundleTree(); var provider = new AssetBundleInfosProvider(organizer); provider.PopulateData(); return(provider); }
private bool CheckInputAssetBundleNameValid() { if (!AssetBundleOrganizer.AssetBundlePathIsValid(m_InputAssetBundlePath)) { EditorUtility.DisplayDialog("Oops!", Core.Utility.Text.Format( "Asset bundle path '{0}' is not valid. It should use '/' to delimit segments, each of which should match '{1}'", m_InputAssetBundlePath, AssetBundleOrganizer.AssetBundlePathSegmentRegex), "Okay"); return(false); } return(true); }
public AssetBundleInfosProvider(AssetBundleOrganizer organizer) { m_Organizer = organizer ?? throw new ArgumentNullException(nameof(organizer)); }