Skip to content

Instantly share code, notes, and snippets.

@benchi99
Last active October 31, 2019 09:03
Show Gist options
  • Select an option

  • Save benchi99/9dbe4f0d7e6216aa09ed5a64e839025f to your computer and use it in GitHub Desktop.

Select an option

Save benchi99/9dbe4f0d7e6216aa09ed5a64e839025f to your computer and use it in GitHub Desktop.
edit resolution getting from dropdown
public void VideoSettingsChange() {
string resolutionSelection = resolution.value.ToString();
int width = Int32.Parse(resolutionSelection.Substring(0, resolutionSelection.IndexOf('x')));
int height = Int32.Parse(resolutionSelection.Substring(resolutionSelection.IndexOf('x') + 1);
Screen.SetResolution(width, height, (FullScreenMode)fsms.value, 60);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment