Skip to content

Commit 02c81e8

Browse files
committed
VRM1視線制御異常への暫定対処(強制Update&LateUpdate化)
1 parent 67f5167 commit 02c81e8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

EVMC4U/ExternalReceiver.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
using UnityEngine.Events;
3838
using UnityEngine.Profiling;
3939
using UniGLTF;
40+
using UniVRM10;
4041

4142
namespace EVMC4U
4243
{
@@ -639,6 +640,19 @@ public void Process()
639640
*/
640641

641642
//Debug.Log("-- End BlendShapeProxy BSKey Table --");
643+
}
644+
645+
// VRM1において、VRM1によるLateUpdateでの更新はUpdateにずらして(Constraints)
646+
// EVMC4UはLateUpdateにする(視線動かない問題への暫定対処)
647+
if (VrmRootV1?.UpdateType == Vrm10Instance.UpdateTypes.LateUpdate)
648+
{
649+
VrmRootV1.UpdateType = Vrm10Instance.UpdateTypes.Update;
650+
Debug.Log("[ExternalReceiver] [Temporary Fix] Forcefully change the UpdateType of Vrm10Instance to \"Update\".");
651+
}
652+
if (VrmRootV1?.UpdateType == Vrm10Instance.UpdateTypes.Update && EnableLateUpdateForOverwriteAnimationResult == false)
653+
{
654+
EnableLateUpdateForOverwriteAnimationResult = true;
655+
Debug.Log("[ExternalReceiver] [Temporary Fix] Forcefully change the Update timing of ExternalReceiver to LateUpdate.");
642656
}
643657

644658
BoneSynchronizeByTable();

0 commit comments

Comments
 (0)