diff --git a/Assets/VRM10_Samples/VRM10Viewer/UIToolkit/MainView.uxml b/Assets/VRM10_Samples/VRM10Viewer/UIToolkit/MainView.uxml index 79d645c87..9df3596bb 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/UIToolkit/MainView.uxml +++ b/Assets/VRM10_Samples/VRM10Viewer/UIToolkit/MainView.uxml @@ -23,6 +23,8 @@ + + @@ -65,7 +67,9 @@ - + + + diff --git a/Assets/VRM10_Samples/VRM10Viewer/UIToolkit/VRM10MainView.cs b/Assets/VRM10_Samples/VRM10Viewer/UIToolkit/VRM10MainView.cs index f023f4236..8c680bee0 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/UIToolkit/VRM10MainView.cs +++ b/Assets/VRM10_Samples/VRM10Viewer/UIToolkit/VRM10MainView.cs @@ -13,6 +13,7 @@ namespace UniVRM10.VRM10Viewer [SerializeField] VRM10ViewerController m_controller = new(); + VisualElement m_root; // left Toggle m_useAsync; Toggle m_useSpringboneSingleton; @@ -73,18 +74,32 @@ namespace UniVRM10.VRM10Viewer // The UXML is already instantiated by the UIDocument component var uiDocument = GetComponent(); var root = uiDocument.rootVisualElement; + m_root = root; - var openModelButton = root.Q