Fail closed on missing advertised bundle assets
This commit is contained in:
parent
2306b470f1
commit
c47f9b0b07
2 changed files with 6 additions and 2 deletions
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
Reference in a new issue