public bool SyncFromProject()
        {
            AssetBundleCollection assetBundleCollection = new AssetBundleCollection();

            string[] assetBundleNames = GetUsedAssetBundleNames();
            foreach (string assetBundleFullName in assetBundleNames)
            {
                string assetBundleName    = assetBundleFullName;
                string assetBundleVariant = null;
                int    dotPosition        = assetBundleFullName.LastIndexOf('.');
                if (dotPosition > 0 && dotPosition < assetBundleFullName.Length - 1)
                {
                    assetBundleName    = assetBundleFullName.Substring(0, dotPosition);
                    assetBundleVariant = assetBundleFullName.Substring(dotPosition + 1);
                }

                if (!assetBundleCollection.AddAssetBundle(assetBundleName, assetBundleVariant, AssetBundleLoadType.LoadFromFile, false))
                {
                    return(false);
                }

                string[] assetNames = GetAssetPathsFromAssetBundle(assetBundleFullName);
                foreach (string assetName in assetNames)
                {
                    string assetGuid = AssetDatabase.AssetPathToGUID(assetName);
                    if (string.IsNullOrEmpty(assetGuid))
                    {
                        return(false);
                    }

                    if (!assetBundleCollection.AssignAsset(assetGuid, assetBundleName, assetBundleVariant))
                    {
                        return(false);
                    }
                }
            }

            return(assetBundleCollection.Save());
        }
 public bool AddAssetBundle(string assetBundleName, string assetBundleVariant, AssetBundleLoadType assetBundleLoadType, bool assetBundlePacked)
 {
     return(m_AssetBundleCollection.AddAssetBundle(assetBundleName, assetBundleVariant, assetBundleLoadType, assetBundlePacked));
 }