static void AddAssetToAddressable(string assetPath) { //只将Assets/AssetsPackage目录下的资源挂addressable if (!assetPath.Contains("Assets/" + AddressableTools.Assets_Package)) { return; } if (Directory.Exists(assetPath)) { return; } if (assetPath.Contains("Atlas"))//图集 { string is_atlas_model = EditorUserSettings.GetConfigValue(AddressableTools.is_atlas_model); if (is_atlas_model == "0") { AddressableTools.AddImportAssetToaddressable(assetPath); } } else { AddressableTools.AddImportAssetToaddressable(assetPath); } }
public static void HandleProject() { //清除图集 //AltasHelper.ClearAllAtlas(); AASUtility.CleanPlayerContent(); AssetDatabase.SaveAssets(); AssetDatabase.Refresh(); //生成图集 // AltasHelper.GeneratingAtlas(); //Marked AssetsPackage Addressable AddressableTools.RunCheckAssetBundle(); AssetDatabase.SaveAssets(); AssetDatabase.Refresh(); //Build Default Build Script AddressableTools.BuildPlayerContent(); }
public static void BuildPlayerContent() { AddressableTools.BuildPlayerContent(); }
public static void MarkedAddressable() { AddressableTools.MarkedAddressable(); }
public static void RunCheckAssetBundle() { AddressableTools.RunCheckAssetBundle(); }