diff --git a/Assets/VRM10/Runtime/Components/Vrm10Runtime/Vrm10Runtime.cs b/Assets/VRM10/Runtime/Components/Vrm10Runtime/Vrm10Runtime.cs index 24ea8a369..8a40ad9e5 100644 --- a/Assets/VRM10/Runtime/Components/Vrm10Runtime/Vrm10Runtime.cs +++ b/Assets/VRM10/Runtime/Components/Vrm10Runtime/Vrm10Runtime.cs @@ -206,7 +206,7 @@ namespace UniVRM10 // look at if (VrmAnimation.LookAt.HasValue) { - LookAt.SetLookAtInput(VrmAnimation.LookAt.Value); + LookAt.LookAtInput = VrmAnimation.LookAt.Value; } } @@ -224,7 +224,7 @@ namespace UniVRM10 { // Transform 追跡で視線を生成する。 // 値を上書きします。 - LookAt.SetLookAtInput(new LookAtInput { WorldPosition = m_instance.LookAtTarget.position }); + LookAt.LookAtInput = new LookAtInput { WorldPosition = m_instance.LookAtTarget.position }; } // 4. Gaze control diff --git a/Assets/VRM10/Runtime/Components/Vrm10Runtime/Vrm10RuntimeLookAt.cs b/Assets/VRM10/Runtime/Components/Vrm10Runtime/Vrm10RuntimeLookAt.cs index 4d140b3c5..35598ddcc 100644 --- a/Assets/VRM10/Runtime/Components/Vrm10Runtime/Vrm10RuntimeLookAt.cs +++ b/Assets/VRM10/Runtime/Components/Vrm10Runtime/Vrm10RuntimeLookAt.cs @@ -16,13 +16,7 @@ namespace UniVRM10 /// /// 入力値。適宜更新可。 /// - public LookAtInput LookAtInput { get; private set; } - - // LookAtInput をそのまま Set - public void SetLookAtInput(LookAtInput eyeInput) - { - LookAtInput = eyeInput; - } + public LookAtInput LookAtInput { get; set; } /// /// 出力値。Process() のみが更新する