From a6da3c833d4c04fe2c6ef009613973a2d646c334 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Tue, 22 Feb 2022 18:42:57 +0900 Subject: [PATCH] =?UTF-8?q?sample=20=E3=82=92=E5=A4=89=E6=9B=B4=E3=81=AB?= =?UTF-8?q?=E8=BF=BD=E9=9A=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../VRM10FirstPersonSample/VRM10RuntimeLoader.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/VRM10_Samples/VRM10FirstPersonSample/VRM10RuntimeLoader.cs b/Assets/VRM10_Samples/VRM10FirstPersonSample/VRM10RuntimeLoader.cs index b2c30e826..bcd5fd278 100644 --- a/Assets/VRM10_Samples/VRM10FirstPersonSample/VRM10RuntimeLoader.cs +++ b/Assets/VRM10_Samples/VRM10FirstPersonSample/VRM10RuntimeLoader.cs @@ -69,7 +69,7 @@ namespace UniVRM10.FirstPersonSample return; } - var instance = await LoadAsync(path); + var instance = await LoadAsync(path, new VRMShaders.RuntimeOnlyAwaitCaller()); var root = instance.gameObject; root.transform.SetParent(transform, false); @@ -84,12 +84,12 @@ namespace UniVRM10.FirstPersonSample SetupTarget(m_target); } - async Task LoadAsync(string path) + async Task LoadAsync(string path, VRMShaders.IAwaitCaller awaitCaller) { var instance = await Vrm10.LoadPathAsync(path); // VR用 FirstPerson 設定 - await instance.Vrm.FirstPerson.SetupAsync(instance.gameObject); + await instance.Vrm.FirstPerson.SetupAsync(instance.gameObject, awaitCaller); return instance; }