- Home /
Getting videoplayer reference from video playing
Hello I hope someone can help me in this. I was wondering how to obtain the name of the video playing in unity's built in videoplayer. I need to reference it in another script but I am unsure on how to obtain the name of the video file that I have attached to the videoplayer.
I thought it would be a simple toString method but that does not seem to work.
I cannot directly reference the video file in the script because I have an array set up that plays a number of videos, so I need to get the reference for each video file that plays then have it print out the name of the file that's playing.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
video is not playing; Using Url 0 Answers
is it possible to play video directly from android 2 Answers