// opens external file in default viewer for that filetype // for example: powerpoint file would open in powerpoint using UnityEngine; using System.Collections; using System.IO; using System.Diagnostics; using System; using Debug = UnityEngine.Debug; namespace UnityLibrary { public class OpenExternalFile : MonoBehaviour { // opens external file in default viewer public static void OpenFile(string fullPath) { Debug.Log("opening:" + fullPath); if (File.Exists(fullPath)) { try { Process myProcess = new Process(); myProcess.StartInfo.FileName = fullPath; myProcess.Start(); // myProcess.WaitForExit(); } catch (Exception e) { Debug.Log(e); } } } } }