Join our Discord Channel
using System.Collections;using System.Collections.Generic;using UnityEngine;using UnityEditor; public class VideoPlayerControlMod : MonoBehaviour { public UnityEngine.Video.VideoPlayer vPlayer; public long longFrame; public int currentFrame; public int currentSeek; public long longSeek; void Update () { longFrame = (vPlayer.frame); currentFrame = (int)longFrame; Debug.Log("frameCount " + vPlayer.frame); } void OnPlay() { vPlayer.Play(); } void OnPause() { vPlayer.Pause(); } void OnStop() { vPlayer.Stop(); } void OnSeek() { longSeek = (long)currentSeek; vPlayer.frame += (longSeek); }}