[url]WWW.GetURL[/url]

Hello All,

Is this doable?
Press gui button on game menu to open help files.

var helpPage = WWW.GetURL("file://Applications/nameoffolder/nameofgame/helpfolder/help.pdf");

function OnMouseDown()
{
    Application.LoadLevel("helpPage");
}

Just thinking of accessing a help file in pdf or doc format stored in a folder inside the game folder where the game.app is located.

Am I making sense?

Thanks,
Ray

That won’t work. Loadlevel only loads a Unity level.

Instead you want to use the OS to open it. Try this code:

var filePath = Application.dataPath + "/Manual.html";   // Or .pdf or whatever

switch(Application.platform) {		  
	case RuntimePlatform.WindowsPlayer:
		System.Diagnostics.Process.Start(filePath);
		break;
	default:
		System.Diagnostics.Process.Start(string.Format("open \"{0}\"",filePath));
	break;
}

Note: This won’t work from the web player…

Sweet,
Thanks,

Ray