gg.easy.airship 0.1.2123 → 0.1.2124
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Editor/CreateAssetBundles.cs +16 -6
- package/package.json +1 -1
|
@@ -311,14 +311,24 @@ public static class CreateAssetBundles {
|
|
|
311
311
|
foreach (var assetBundleFile in AirshipPackagesWindow.assetBundleFiles) {
|
|
312
312
|
var assetBundleName = assetBundleFile.ToLower();
|
|
313
313
|
if (assetBundleName == "shared/scenes") {
|
|
314
|
-
|
|
315
|
-
.Select((s) => AssetDatabase.GetAssetPath((SceneAsset)s))
|
|
314
|
+
var assetGuids = gameConfig.gameScenes
|
|
315
|
+
.Select((s) => AssetDatabase.GetAssetPath((SceneAsset)s)).ToHashSet();
|
|
316
|
+
|
|
317
|
+
var explicitlyAddedPaths = AssetDatabase.GetAssetPathsFromAssetBundle("scenes");
|
|
318
|
+
Debug.Log($"Found {explicitlyAddedPaths.Length} explicit assets for scenes bundle.");
|
|
319
|
+
foreach (var path in explicitlyAddedPaths) {
|
|
320
|
+
// Debug.Log(" - " + path);
|
|
321
|
+
assetGuids.Add(AssetDatabase.AssetPathToGUID(path));
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
string[] assetPaths = assetGuids
|
|
316
325
|
.Where((path) => !(path.EndsWith(".lua") || path.EndsWith(".json~")))
|
|
317
326
|
.ToArray();
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
327
|
+
Debug.Log("Including assets in scenes bundle:");
|
|
328
|
+
foreach (var p in assetPaths) {
|
|
329
|
+
Debug.Log(" - " + p);
|
|
330
|
+
}
|
|
331
|
+
|
|
322
332
|
var addressableNames = assetPaths.Select((p) => p.ToLower())
|
|
323
333
|
.ToArray();
|
|
324
334
|
var build = new AssetBundleBuild() {
|