Fail closed on missing advertised bundle assets

This commit is contained in:
Meta Vens 2026-07-13 22:44:15 +01:00
commit c47f9b0b07
2 changed files with 6 additions and 2 deletions

View file

@ -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))

View file

@ -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": {