From fd9e939b7b6dcc37fb4dc65746d652fc1ec147f4 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Mon, 13 Jul 2026 22:58:01 +0100 Subject: [PATCH] Reject incompatible provider asset catalogs --- .../CultMesh/EveUnityCultMeshLiveProviderTransport.cs | 10 ++++++++++ packages/org.gamecult.eve.unity-scene/package.json | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) 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 10942bf..af544aa 100644 --- a/packages/org.gamecult.eve.unity-scene/Runtime/CultMesh/EveUnityCultMeshLiveProviderTransport.cs +++ b/packages/org.gamecult.eve.unity-scene/Runtime/CultMesh/EveUnityCultMeshLiveProviderTransport.cs @@ -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)) { diff --git a/packages/org.gamecult.eve.unity-scene/package.json b/packages/org.gamecult.eve.unity-scene/package.json index 58e78aa..0076b2d 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.6", + "version": "0.3.7", "unity": "2021.3", "description": "Provider-agnostic Unity scene shell for gamecult.eve.surface.v1 interactive world surfaces.", "dependencies": {