Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by algaib · Apr 12, 2017 at 04:23 PM · c#graphicssettings

Dropdown menus for settings have randomly stopped working

My settings panels have stopped working all of a sudden (they did work in the main menu, and during gameplay). When you open a dropdown menu (e.g. to set resolution), a new game object called a 'blocker' is instantiated and none of the options are intractable - they are either not there, or are greyed out. The 'blocker' could be a part of the dropdown system because the V-sync option still works (the only dropdown that does) - it appears when the menu is open, then vanishes when the menu is closed.

I'm a C# noob, so any advice would be much appreciated! I've hashed together bits of code from different sources. I can't think of what has changed to cause this issue :/

 using System;
 using System.Collections;
 using System.Collections.Generic;
 using UnityEngine;
 using UnityEngine.UI;
 using UnityEngine.Events;
 using System.IO;
 
 public class SettingsController : MonoBehaviour {
 
     public static int[] AliasingOptions = new int[4] { 0, 2, 4, 8 };
     public static int[] ScreenResolutions = new int[4] { 0, 2, 4, 8 };
 
     public Dropdown ResolutionDropdown;
     Resolution[] resolutions;
 
     public Slider volSlide;
 
     public void SetQualitySettings(int value)
     {
         QualitySettings.SetQualityLevel(value);
     }
 
     public void SetVSyncSettings(int value)
     {
         QualitySettings.vSyncCount = value;
     }
 
     public void SetAntiAliasing(int value)
     {
         QualitySettings.antiAliasing = AliasingOptions[value];
     }
 
     public void ToggleFullScreen(bool value)
     {
         if (Screen.fullScreen == true)
             Screen.fullScreen = false;
         else
             Screen.fullScreen = true;
     }
 
     void Start()
     {
         resolutions = Screen.resolutions;
 
         for (int i = 0; i < resolutions.Length; i++)
         {
             ResolutionDropdown.options.Add(new Dropdown.OptionData(ResToString(resolutions[i])));
 
             ResolutionDropdown.value = i;
 
             ResolutionDropdown.onValueChanged.AddListener(delegate { Screen.SetResolution(resolutions[ResolutionDropdown.value].width, resolutions[ResolutionDropdown.value].height, true); });
 
         }
     }
 
     void Update()
     {
         ChangeAudioVolume();
     }
 
     string ResToString(Resolution res)
     {
         return res.width + " x " + res.height;
     }
 
     void ChangeAudioVolume()
     {
         AudioListener.volume = volSlide.value;
     }
 }
 

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Mikael-H · Apr 12, 2017 at 07:04 PM

There's a bug that was introduced in Unity 5.6 that may or may not be your issue. If I understand correctly it appears if you deactivate and then deactivate a parent canvas. It has been discussed in this thread.

I downgraded our project to 5.5.3 and that worked. For me it was actually possible to just open the whole project in 5.5.3 and just edit the text file with the version number in it but your mileage may vary. As you state that you are a beginner, let me press the importance to backup projects before doing stuff like that! (By backup I of course actually mean keep your project under version control... )

Otherwise you may try an wait for the next patch as it seems they have fixed it and it will probably be rolled out ASAP.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image algaib · Apr 12, 2017 at 07:16 PM 0
Share

Ah that's interesting, but it's odd that the V-sync option works but the others don't. I looked into the screenspace thing and that doesn't seem to be the issue here; you can see in the image that the options are all there, they're just not visible. I double clicked the options in the inspector and it just took me to the dropdown menu :/

Thanks for the advice, looks like reverting or waiting for the patch!

alt text

dropdown-options-missing.jpg (457.4 kB)

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

304 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Always included shaders (Graphics settings) 1 Answer

Multiple Cars not working 1 Answer

Distribute terrain in zones 3 Answers

Is there anyway to have an advanced graphics option in my game? 1 Answer

Problems using OnRenderObject() and Graphics.DrawMeshNow() 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges