Question by
RiverThomas · May 26, 2017 at 05:02 AM ·
c#unity 5
Where does the local WWW path point on mac builds?
In a simulation I'm working on the user should be able to load in a video to be used by the application. To do this, I'm using WWW that loads in a movie from a video folder, and this works fine on Windows. I was however wondering where the Video folder needs to be located in Mac builds?
I'm using:
private string absolutePath = "./Video/"; // relative path to where the app is running
// Start download
WWW www = new WWW("file://" + path);
// Check mac or windows, and change file path accordingly
if (Application.platform == RuntimePlatform.WindowsPlayer)
{
www = new WWW("File://" + path);
} else if (Application.platform == RuntimePlatform.OSXPlayer)
{
www = new WWW("File:///" + path);
}
Any help would be appreciated.
Comment
Your answer
Follow this Question
Related Questions
OnGUI will not show up? 1 Answer
My audio doesn't play, I'm through my options... 1 Answer
Need help with c# 1 Answer
Why the line appears in the incorrect place ? 0 Answers
I've got a problem with enemies following the player. 0 Answers