Skip to content

Commit

Permalink
VRM1視線制御異常への暫定対処(強制Update&LateUpdate化)
Browse files Browse the repository at this point in the history
  • Loading branch information
gpsnmeajp committed Aug 17, 2024
1 parent 67f5167 commit 02c81e8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions EVMC4U/ExternalReceiver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
using UnityEngine.Events;
using UnityEngine.Profiling;
using UniGLTF;
using UniVRM10;

namespace EVMC4U
{
Expand Down Expand Up @@ -639,6 +640,19 @@ public void Process()
*/

//Debug.Log("-- End BlendShapeProxy BSKey Table --");
}

// VRM1において、VRM1によるLateUpdateでの更新はUpdateにずらして(Constraints)
// EVMC4UはLateUpdateにする(視線動かない問題への暫定対処)
if (VrmRootV1?.UpdateType == Vrm10Instance.UpdateTypes.LateUpdate)
{
VrmRootV1.UpdateType = Vrm10Instance.UpdateTypes.Update;
Debug.Log("[ExternalReceiver] [Temporary Fix] Forcefully change the UpdateType of Vrm10Instance to \"Update\".");
}
if (VrmRootV1?.UpdateType == Vrm10Instance.UpdateTypes.Update && EnableLateUpdateForOverwriteAnimationResult == false)
{
EnableLateUpdateForOverwriteAnimationResult = true;
Debug.Log("[ExternalReceiver] [Temporary Fix] Forcefully change the Update timing of ExternalReceiver to LateUpdate.");
}

BoneSynchronizeByTable();
Expand Down

0 comments on commit 02c81e8

Please sign in to comment.