Reject incompatible provider asset catalogs
This commit is contained in:
parent
c47f9b0b07
commit
fd9e939b7b
2 changed files with 11 additions and 1 deletions
|
|
@ -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))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
Reference in a new issue