Refactor: Moved settings panels to their own classes (#89)

This should not affect any functionalities
This commit is contained in:
katboi01
2025-07-12 13:36:19 +02:00
committed by GitHub
parent 204752d7d6
commit e32a38c6c7
28 changed files with 1234 additions and 1318 deletions
+6 -6
View File
@@ -114,10 +114,10 @@ public class PoseManager : MonoBehaviour
{
if (PoseModeOn) return;
var ui = UmaViewerUI.Instance;
var modelSettings = UmaViewerUI.Instance.ModelSettings;
var builder = UmaViewerBuilder.Instance;
ui.SetEyeTrackingEnable(false);
ui.SetDynamicBoneEnable(false);
modelSettings.SetEyeTrackingEnable(false);
modelSettings.SetDynamicBoneEnable(false);
HandleCanvas.SetActive(true);
if (builder.CurrentUMAContainer && builder.CurrentUMAContainer.UmaAnimator)
@@ -135,10 +135,10 @@ public class PoseManager : MonoBehaviour
UIPoseContainer.CreateBackupFromScene();
var ui = UmaViewerUI.Instance;
var modelSettings = UmaViewerUI.Instance.ModelSettings;
var builder = UmaViewerBuilder.Instance;
ui.SetEyeTrackingEnable(true);
ui.SetDynamicBoneEnable(true);
modelSettings.SetEyeTrackingEnable(true);
modelSettings.SetDynamicBoneEnable(true);
HandleCanvas.SetActive(false);
if (builder.CurrentUMAContainer != null && builder.CurrentUMAContainer.UmaAnimator != null)