読者です 読者をやめる 読者になる 読者になる

Videoplayer script

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Video;

public class MovieObject : MonoBehaviour
{

public VideoClip test1, test2;
private VideoPlayer videoplayer;
// Use this for initialization
void Start()
{
videoplayer = GetComponent<VideoPlayer>();

}

public void f_videoplay(){
videoplayer.clip = test1;
videoplayer.isLooping = true;
videoplayer.Play();
}

public void f_videostop()
{
videoplayer.Stop();

}
}