So I have this problem :
As you can see the dropdown is hidden behind the Panel.
Here are my Canvas settings:
If you need further information, tell me! Thanks in advance.
So I have this problem :
As you can see the dropdown is hidden behind the Panel.
Here are my Canvas settings:
If you need further information, tell me! Thanks in advance.
I had the same problem. I have a solution for you: Place this script on the dropdown object and you’ll be fine.
`using UnityEngine;
using System.Collections;
public class DropdownRepair : MonoBehaviour
{
public Transform dropdownList;
//It’s public, so we can see if the script works.
public void Repair()
{
StartCoroutine(SetDropDownList());
}
void RepairPartTwo()
{
dropdownList.gameObject.GetComponent<Canvas>().overrideSorting = false;
}
IEnumerator SetDropDownList()
{
yield return new WaitForSeconds(0.1f);
if (dropdownList == null)
dropdownList = gameObject.transform.GetChild(3);
RepairPartTwo();
}
}`
Also I’m a noob, so someone know, how to do it better, please correct it.
I came up with a solution. Just place that script on the dropdown object:
using UnityEngine;
using System.Collections;
public class DropdownRepair : MonoBehaviour
{
public Transform dropdownList;
//It's public, so we can see if the script works.
public void Repair()
{
StartCoroutine(SetDropDownList());
}
void RepairPartTwo()
{
dropdownList.gameObject.GetComponent<Canvas>().overrideSorting = false;
}
IEnumerator SetDropDownList()
{
yield return new WaitForSeconds(0.1f);
if (dropdownList == null)
dropdownList = gameObject.transform.GetChild(3);
RepairPartTwo();
}
}
Also I’m a noob, so if someone knows how to correct this, please do it.