From c47f9b0b070b042f54641057bf1f1111d207c45c Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Mon, 13 Jul 2026 22:44:15 +0100 Subject: [PATCH] Fail closed on missing advertised bundle assets --- .../CultMesh/EveUnityCultMeshLiveProviderTransport.cs | 6 +++++- packages/org.gamecult.eve.unity-scene/package.json | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/org.gamecult.eve.unity-scene/Runtime/CultMesh/EveUnityCultMeshLiveProviderTransport.cs b/packages/org.gamecult.eve.unity-scene/Runtime/CultMesh/EveUnityCultMeshLiveProviderTransport.cs index 0d57da3..10942bf 100644 --- a/packages/org.gamecult.eve.unity-scene/Runtime/CultMesh/EveUnityCultMeshLiveProviderTransport.cs +++ b/packages/org.gamecult.eve.unity-scene/Runtime/CultMesh/EveUnityCultMeshLiveProviderTransport.cs @@ -552,7 +552,11 @@ namespace GameCult.Eve.UnityScene foreach (var selection in group) { var value = bundle.LoadAsset(selection.Variant!.AssetKey); - if (value == null) continue; + if (value == null) + throw new InvalidOperationException( + $"Provider asset '{selection.Asset.AssetRef}' advertises missing Unity bundle asset " + + $"'{selection.Variant.AssetKey}'. Available assets: " + + string.Join(", ", bundle.GetAllAssetNames())); _nativeAssets[selection.Asset.AssetRef] = value; if (selection.Asset.Metadata.TryGetValue("presentationRole", out var role) && !string.IsNullOrWhiteSpace(role)) diff --git a/packages/org.gamecult.eve.unity-scene/package.json b/packages/org.gamecult.eve.unity-scene/package.json index a5e4d6c..58e78aa 100644 --- a/packages/org.gamecult.eve.unity-scene/package.json +++ b/packages/org.gamecult.eve.unity-scene/package.json @@ -1,7 +1,7 @@ { "name": "org.gamecult.eve.unity-scene", "displayName": "Eve Unity Scene Lowering", - "version": "0.3.5", + "version": "0.3.6", "unity": "2021.3", "description": "Provider-agnostic Unity scene shell for gamecult.eve.surface.v1 interactive world surfaces.", "dependencies": {