Game Development Reference
In-Depth Information
GetComponent<Video_Config>().SetResolution(2,
3);
if(GUI.Button(new Rect(250, 20, 75, 20),
"Custom"))
GetComponent<Video_Config>().SetResolution(3,
3);
GUI.Label(new Rect(25, 40, 100, 30), "Field
of View");
fov = GUI.HorizontalSlider(new Rect(115, 45,
100, 30), fov, 60.00f, 120.00f);
GUI.Label(new Rect(25, 60, 100, 30),
"Antialiasing");
aa = GUI.Toggle(new Rect(115, 60, 100, 30),
aa, " On/Off");
GUI.Label(new Rect(25, 75, 100, 30),
"Resolution");
if(GUI.Button(new Rect(25, 95, 75, 20),
"1920x1080"))
GetComponent<Video_Config>().SetResolution(0,
3);
if(GUI.Button(new Rect(100, 95, 75, 20),
"1600x900"))
GetComponent<Video_Config>().SetResolution(1,
3);
if(GUI.Button(new Rect(175, 95, 75, 20),
"1280x1024"))
GetComponent<Video_Config>().SetResolution(2,
3);
if(GUI.Button(new Rect(250, 95, 75, 20),
"1280x800"))
Search WWH ::




Custom Search