From e2cc73b03c47cd712d6c3e86232d526489a16b9c Mon Sep 17 00:00:00 2001 From: notargs Date: Thu, 14 Oct 2021 17:31:50 +0900 Subject: [PATCH] =?UTF-8?q?Hierarchy=E3=81=AE=E6=A7=8B=E7=AF=89=E3=81=8C?= =?UTF-8?q?=E7=B5=82=E3=82=8F=E3=82=8B=E3=81=BE=E3=81=A7Vrm10Instance?= =?UTF-8?q?=E3=81=AE=E6=9C=89=E5=8A=B9=E5=8C=96=E3=82=92=E9=81=85=E5=BB=B6?= =?UTF-8?q?=E3=81=95=E3=81=9B=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/VRM10/Runtime/IO/Vrm10Importer.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Assets/VRM10/Runtime/IO/Vrm10Importer.cs b/Assets/VRM10/Runtime/IO/Vrm10Importer.cs index 363a1bb1f..2906b4e6c 100644 --- a/Assets/VRM10/Runtime/IO/Vrm10Importer.cs +++ b/Assets/VRM10/Runtime/IO/Vrm10Importer.cs @@ -239,6 +239,7 @@ namespace UniVRM10 // VrmController var controller = Root.AddComponent(); + controller.enabled = false; // vrm controller.Vrm = await LoadVrmAsync(awaitCaller, m_vrm.VrmExtension); @@ -250,6 +251,9 @@ namespace UniVRM10 } // constraint await LoadConstraintAsync(awaitCaller, controller); + + // Hierarchyの構築が終わるまで遅延させる + controller.enabled = true; } VRM10Expression GetOrLoadExpression(in SubAssetKey key, ExpressionPreset preset, UniGLTF.Extensions.VRMC_vrm.Expression expression)