fix new live error, add live Lyrics ui

This commit is contained in:
CroakFang
2023-08-28 00:57:47 +08:00
parent 3cbe760b84
commit 070b005216
16 changed files with 698 additions and 198 deletions
@@ -15,6 +15,11 @@ public class LiveViewerUI : MonoBehaviour
public Dropdown FrameRateDropDown;
public GameObject RecordingUI;
public Text LyricsText;
public List<UmaLyricsData> CurrentLyrics = new List<UmaLyricsData>();
float targetHeight = 0;
float height;
private void Awake()
@@ -53,4 +58,10 @@ public class LiveViewerUI : MonoBehaviour
{
Application.targetFrameRate = int.Parse(FrameRateDropDown.options[fps].text);
}
public void UpdateLyrics(float time)
{
var text = UmaUtility.GetCurrentLyrics(time, CurrentLyrics);
LyricsText.text = text;
}
}