live motion support

This commit is contained in:
左右看
2023-07-02 18:41:31 +08:00
parent 1d92c339d1
commit 0e71fc6d56
6 changed files with 298 additions and 14 deletions
+4
View File
@@ -133,6 +133,8 @@ public class UmaViewerUI : MonoBehaviour
public bool EnableEyeTracking = true;
public bool EnableFaceOverride = true;
public bool LiveTime = false;
public FaceDrivenKeyTarget currentFaceDrivenKeyTarget;
private IEnumerator UpdateResVerCoroutine;
@@ -585,6 +587,7 @@ public class UmaViewerUI : MonoBehaviour
var selectlist = LiveSelectList.content.GetComponentsInChildren<LiveCharacterSelect>();
if (selectlist != null)
{
LiveTime = true;
Builder.LoadLive(currentLive, new List<LiveCharacterSelect>(selectlist));
LiveSelectPannel.SetActive(false);
}
@@ -957,6 +960,7 @@ public class UmaViewerUI : MonoBehaviour
/// <summary> Toggles one object ON and all others from UI.TogglablePanels list OFF </summary>
public void ToggleUIPanel(GameObject go)
{
if (go.activeSelf || !TogglablePanels.Contains(go))
{
go.SetActive(!go.activeSelf);