Publish current live selection and graphics source with external keys

This commit is contained in:
0xcjy
2026-10-02 12:07:33 +08:00
parent 737d34db87
commit d6efc31917
56 changed files with 16917 additions and 1788 deletions
+6 -3
View File
@@ -1,4 +1,4 @@
#if UNITY_EDITOR
#if UNITY_EDITOR
using System;
using System.Collections.Generic;
using System.Globalization;
@@ -208,8 +208,11 @@ public static class LiveRenderCapture
var live = main.Lives.FirstOrDefault(x => x.MusicId == plan.songId);
if (live == null || main.Characters.Count < live.MemberCount) return;
var selections = new List<LiveCharacterSelect>();
if (live.MemberCount != plan.characters.Length || live.BackGroundId != plan.stageId)
throw new InvalidOperationException("Reference song/stage/member count differs from loaded Live metadata.");
// Reference identity includes optional actors created by the native
// channel expansion; only MemberCount identities are selected in UI.
// The complete instantiated cast is still checked below.
if (live.MemberCount <= 0 || live.MemberCount > plan.characters.Length || live.BackGroundId != plan.stageId)
throw new InvalidOperationException("Reference song/stage/selected members differ from loaded Live metadata.");
for (int i = 0; i < live.MemberCount; ++i)
{
var item = new GameObject("CaptureSelection_" + i).AddComponent<LiveCharacterSelect>();