fix new live error, add live Lyrics ui
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user