This change should fix objects lagging behind animations for some props.

This commit is contained in:
2026-06-05 15:15:36 -04:00
parent 5bb080d546
commit a6e17ae7c1
12 changed files with 802 additions and 362 deletions
@@ -62,7 +62,7 @@ MonoBehaviour:
Data: 3|System.RuntimeType, mscorlib
- Name:
Entry: 1
Data: UnityEngine.Transform, UnityEngine.CoreModule
Data: VRC.SDK3.Components.VRCObjectSync, VRCSDK3
- Name:
Entry: 8
Data:
@@ -2,16 +2,15 @@
using TMPro;
using UdonSharp;
using UnityEngine;
using VRC.SDK3.Components;
using VRC.SDK3.UdonNetworkCalling;
using VRC.SDKBase;
using VRC.Udon;
[UdonBehaviourSyncMode(BehaviourSyncMode.NoVariableSync)]
public class VideoMusicClueSkateboard : UdonSharpBehaviour
{
[SerializeField] private Transform _VHSCassette;
[SerializeField] private Transform _ClueCard;
[SerializeField] private VRCObjectSync _VHSCassette;
[SerializeField] private VRCObjectSync _ClueCard;
[Space]
@@ -32,11 +31,13 @@ public class VideoMusicClueSkateboard : UdonSharpBehaviour
{
_Animator.SetBool("Swooce Right In", false);
_VHSCassette.localPosition = Vector3.zero;
_VHSCassette.localRotation = Quaternion.identity;
_VHSCassette.enabled = false;
_VHSCassette.transform.localPosition = Vector3.zero;
_VHSCassette.transform.localRotation = Quaternion.identity;
_ClueCard.localPosition = Vector3.zero;
_ClueCard.localRotation = Quaternion.identity;
_ClueCard.enabled = false;
_ClueCard.transform.localPosition = Vector3.zero;
_ClueCard.transform.localRotation = Quaternion.identity;
}
[NetworkCallable]
@@ -52,4 +53,15 @@ public class VideoMusicClueSkateboard : UdonSharpBehaviour
{
_Animator.SetBool("Swooce Right In", true);
}
public void EnableVHSSync()
{
_VHSCassette.enabled = true;
}
public void EnableNoteSync()
{
_ClueCard.enabled = true;
}
}