21 lines
453 B
C#
21 lines
453 B
C#
|
|
|||
|
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();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|