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.
@@ -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
- string[] assetPaths = gameConfig.gameScenes
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
- // Debug.Log("Including scenes: ");
319
- // foreach (var p in assetPaths) {
320
- // Debug.Log(" - " + p);
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() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gg.easy.airship",
3
- "version": "0.1.2123",
3
+ "version": "0.1.2124",
4
4
  "displayName": "Airship",
5
5
  "unity": "2021.3",
6
6
  "unityRelease": "12f1",