ArabDesert/Assets/USharpVideo/Examples/Scripts/ResyncButton.cs

21 lines
453 B
C#
Raw Permalink Normal View History

2024-05-25 09:10:35 +03:00

using UdonSharp;
using UnityEngine;
using VRC.SDKBase;
using VRC.Udon;
namespace UdonSharp.Video.Examples
{
[UdonBehaviourSyncMode(BehaviourSyncMode.NoVariableSync)]
[AddComponentMenu("Udon Sharp/Video/Examples/Resync Button")]
public class ResyncButton : UdonSharpBehaviour
{
public USharpVideoPlayer videoPlayer;
public void OnResyncPressed()
{
videoPlayer.ForceSyncVideo();
}
}
}