I have 2 questions, need the java scrips, anybody plz help me
- How to open and exit an external application in unity3d…
this is how to open the external application from start menu
// Goes in OnGUI():
if(GUI.Button(new Rect(15, 15, 95, 35), “Open Notepad”))
{
System.Diagnostics.Process.Start(“notepad.exe”);
}
but i want to open an exe from any other folder its on my desktop. tell me the syantax of the path.
and after opening how can i close it…
- How to change the font size of the variable displayed on the screen…
i have this varable score and it displays on screen but i want to change its font… its preetty small when shows
static var SCORE = 0;
var GGUISkin : GUIText;
function OnGUI()
{
GUI.Label (Rect (840, 35, 100, 20),SCORE.ToString());
expert users can help me out of these problems , please.