A
Admin
Yönetici
Yönetici
C#:
Kod:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Video;
public class VideoPlayerScript : MonoBehaviour
{
[SerializeField] string videoFileName;
void Start()
{
PlayVideo();
}
public void PlayVideo()
{
VideoPlayer videoPlayer = GetComponent<VideoPlayer>();
if (videoPlayer)
{
string videoPath = System.IO.Path.Combine(Application.streamingAssetsPath, videoFileName)...