Reject incompatible provider asset catalogs

This commit is contained in:
Meta Vens 2026-07-13 22:58:01 +01:00
commit fd9e939b7b
2 changed files with 11 additions and 1 deletions

View file

@ -531,6 +531,16 @@ namespace GameCult.Eve.UnityScene
})
.Where(selection => selection.Variant != null)
.ToArray();
if (selected.Length == 0)
{
var advertisedVariants = catalog.Assets
.SelectMany(asset => asset.Variants.Select(variant =>
$"{asset.AssetRef}:{variant.RuntimeId}/{variant.Platform}"))
.ToArray();
throw new InvalidOperationException(
$"Provider asset catalog '{catalog.CatalogId}' has no unity-scene/{CurrentBundlePlatform()} variant. " +
$"Advertised variants: {string.Join(", ", advertisedVariants)}");
}
ReadCameraPolicies(selected.Select(selection => selection.Variant!));
foreach (var group in selected.GroupBy(selection => selection.Variant!.Uri, StringComparer.Ordinal))
{

View file

@ -1,7 +1,7 @@
{
"name": "org.gamecult.eve.unity-scene",
"displayName": "Eve Unity Scene Lowering",
"version": "0.3.6",
"version": "0.3.7",
"unity": "2021.3",
"description": "Provider-agnostic Unity scene shell for gamecult.eve.surface.v1 interactive world surfaces.",
"dependencies": {