Esempio n. 1
0
    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);
        }
    }
Esempio n. 2
0
        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();
        }
Esempio n. 3
0
 public static void BuildPlayerContent()
 {
     AddressableTools.BuildPlayerContent();
 }
Esempio n. 4
0
 public static void MarkedAddressable()
 {
     AddressableTools.MarkedAddressable();
 }
Esempio n. 5
0
 public static void RunCheckAssetBundle()
 {
     AddressableTools.RunCheckAssetBundle();
 }