From 8c078c82ae7870ea63e105bc9d8c09663826a57d Mon Sep 17 00:00:00 2001 From: ousttrue Date: Wed, 9 Nov 2022 14:38:22 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=E3=82=B3=E3=83=9E=E3=83=B3=E3=83=89?= =?UTF-8?q?=E3=83=A9=E3=82=A4=E3=83=B3=E5=BC=95=E3=81=8D=E6=95=B0=E3=81=AE?= =?UTF-8?q?=E3=82=A8=E3=83=A9=E3=83=BC=E3=82=92=E9=98=B2=E6=AD=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs b/Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs index b9ab35159..2dc4e95e6 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs +++ b/Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs @@ -201,9 +201,13 @@ namespace UniVRM10.VRM10Viewer } string[] cmds = System.Environment.GetCommandLineArgs(); - if (cmds.Length > 1) + for (int i = 1; i < cmds.Length; ++i) { - LoadModel(cmds[1]); + if (File.Exists(cmds[i])) + { + LoadModel(cmds[i]); + break; + } } m_texts.Start(); From f0d6af93c52e99f85ef1f8d2b5fda47062fce5d6 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Wed, 9 Nov 2022 15:08:23 +0900 Subject: [PATCH 2/2] hide box man --- Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs b/Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs index 2dc4e95e6..806270b77 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs +++ b/Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs @@ -206,7 +206,6 @@ namespace UniVRM10.VRM10Viewer if (File.Exists(cmds[i])) { LoadModel(cmds[i]); - break; } } @@ -225,6 +224,8 @@ namespace UniVRM10.VRM10Viewer context.Load(); m_src = context.Root.GetComponent(); m_ui.IsBvhEnabled = true; + // hide box man + context.Root.GetComponent().enabled = false; } private void Update()