Files
2024-01-31 22:53:00 +08:00

16 lines
415 B
C#

using System.Collections;
using System.Collections.Generic;
using System.IO;
using UnityEngine;
using UnityEngine.Video;
public class LoadVideoFromStreamingAssets : MonoBehaviour
{
public VideoPlayer videoPlayer;
public string VideoPathFromStreamingAssets;
void Start()
{
videoPlayer.url = Path.Combine(Application.streamingAssetsPath, VideoPathFromStreamingAssets);
}
}