Wednesday, 15 August 2018

More Menu Stuff

Found out about the Unity scripting reference site:
https://docs.unity3d.com/ScriptReference/index.html

There's tons of scripts to search what I need.
I found the scripts for linking my website to a button and the script for making screens fullscreen and windowed to certain sizes which is good.
public void Website(){
Application.OpenURL ("http://rubyred13.wixsite.com/monarchpark");
}
public void Fullscreen(){
Screen.SetResolution (1920, 1080, true);
}
public void Nine(){
Screen.SetResolution (1600, 900, false);
}
public void Seven(){
Screen.SetResolution (1280, 720, false);
}

I've got most of my menus working now, it's the back buttons that will need to be done next.
Later I'll need to do the save and load menus too.