16 lines
415 B
C#
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);
|
||
|
|
}
|
||
|
|
}
|