Example #1
0
        public void CreateAssetBundleBuild(CreateCallback createCallback)
        {
            string path = AssetDatabase.GetAssetPath(AssetFolder);

            createCallback(new AssetBundleBuild()
            {
                assetBundleName = BuildRuleUtil.PathToAssetBundleName(path),
                assetNames      = new string[] { path },
            });
        }
Example #2
0
        public void CreateAssetBundleBuild(CreateCallback createCallback)
        {
            string path = AssetDatabase.GetAssetPath(AssetFolder);

            var folders = AssetDatabase.GetSubFolders(path);

            for (int i = 0; i < folders.Length; i++)
            {
                createCallback(new AssetBundleBuild()
                {
                    assetBundleName = BuildRuleUtil.PathToAssetBundleName(folders[i]),
                    assetNames      = new string[] { folders[i] },
                });
            }
        }