using UdonSharp; using UnityEngine; using UnityEngine.UI; using VRC.SDKBase; using VRC.Udon; namespace UdonSharp.Video.Examples { /// /// Plays a specified video URL when OnButtonPress is triggered by a button in this example. See the URLButton prefab for a use of this. /// [UdonBehaviourSyncMode(BehaviourSyncMode.NoVariableSync)] [AddComponentMenu("Udon Sharp/Video/Examples/Play URL Button")] public class PlayURLButton : UdonSharpBehaviour { public USharpVideoPlayer targetVideoPlayer; public VRCUrl url = VRCUrl.Empty; Button button; void Start() { button = GetComponentInChildren