- Home /
OnMouseUp open an external file
hello I would like to open an excutable Hypercam2.exe with OnMouseUp
I make this but Hypercam2.exe does not lauch
Thank you for help
using UnityEngine;
using System.Collections;
using System.Diagnostics;
using System.IO;
public class OuvreFichierOnmouseUp : MonoBehaviour {
public class Scriptouvrefichier : MonoBehaviour
{
public string nom_fichier="HyCam2.exe";
void OnMouseDown()
{
Process.Start(Path.Combine(Application.dataPath,nom_fichier));
}
}
}
Comment
Your answer
Follow this Question
Related Questions
How to convert from world space to canvas space? 15 Answers
Unity 5 physics change from Unity 4 help! 2 Answers
Show Photon username based on Distance 0 Answers
Create Room No overloaded Method Error 2 Answers