Any way to fix this issue? Dropbox - Error - Simplify your life
Detect if if goes out of the screen and instead draw it upwards?
Iâll think about fixes.
Fixed both issues.
1953976â126364âComboBox.unitypackage (15.8 KB)
Very nice combobox. One suggestion I would make is to put your C# code in your own namespace. Maybe something like:
namespace Kender
{
âŚ
}
The ComboBox class name conflicts with another ComboBox in GameAnalytics.
Sure. Here is a new one:
1954865â126448âComboBox.unitypackage (15.9 KB)
Fixed elements offset bug, caused by the last update.
Iâm giving it a try on Unity 5.0 RC1 and it doesnât appear to be working for me.
When I click on the button in play mode, nothing happens, and in the scene mode the ScrollPanel just shows up with a red X
Sorry, but I donât have Unity 5 to test it ![]()
Thanks for all the updates. This is an amazing package!
Is there an existing way to set an item as selected and have the event fire?
ItemClicked is almost what i want but if the 0 index item is the one you wish to set, it will not fire the event as the index has not changed. Also it calls ToggleComboBox(true). To make it work i added this function which i call instead:
public void MimicItemClicked(int index)
{
SelectedIndex = index;
//ToggleComboBox(true);
if (OnSelectionChanged != null)
OnSelectionChanged(index);
}
I want this because in my program, depending on which item is selected, it will redraw the scene. The function to deal with that is triggered by the OnSelectionChanged(). It would be neater if the default selection that gets loaded from the save file at the program start also triggered this.
I tried to use your combobox but when I click on it I get following error message:
I may add that I try to use your combobox as custom control in this listview:
I have no idea if the cause of the problem is in your combobox or in that listview but it would be great if I could use it together
Sorry for a long response. I have implemented a new version, that now contains:
Action OnItemSelected
Fires when item was selected
void SelectItem(int index)
Selects item
Also, I have implemented a bugfix for cases when combobox has non-standard pivot. Also, scroll handle does not break now.
1965608â127282âComboBox.unitypackage (15.7 KB)
Sorry, but I have no availability for checking this bug, since I do not have ListView plugin paid-up. Anyway, I guessed which problem could apply, so my previous message contains an update of ComboBox, that may solve this issue. Please let me know if this helps. Thanks in advance!
Either whatever you changed, or the bump up to Unity 5.0RC2 seems to have fixed it, it is now working correctly in Unity 5
Glad to know it!
Hello, I have tried importing the latest package into a new project, but immediately get a lot of errors (pasted below).
I am using 4.6 on Windows, is there a missing step I need to do to run the test scene? Thank you!
(Filename: Assets/ComboBox/Scripts/ComboBox.cs Line: 683)
(Filename: Assets/ComboBox/Scripts/ComboBox.cs Line: 685)
Assets/ComboBox/Scripts/ComboBox.cs(686,57): error CS1061: Type UnityEngine.RectTransform' does not contain a definition for SetSizeWithCurrentAnchorsâ and no extension method SetSizeWithCurrentAnchors' of type UnityEngine.RectTransformâ could be found (are you missing a using directive or an assembly reference?)
(Filename: Assets/ComboBox/Scripts/ComboBox.cs Line: 686)
Assets/ComboBox/Scripts/ComboBox.cs(697,85): error CS1061: Type UnityEngine.UI.ScrollRect' does not contain a definition for scrollSensitivityâ and no extension method scrollSensitivity' of type UnityEngine.UI.ScrollRectâ could be found (are you missing a using directive or an assembly reference?)
Hello, @mechangel !
It seems like Unity team changed scripting API for Your, possibly, latest Unity 4.6 build, either Your Unity caught some lag, as RectTransform.SetSizeWithCurrentAnchors and UI.ScrollRect.scrollSensitivity remain in Unity docs.
If Unity restart does not help, please specify Your Unity version in more detail:
Thanks in advance!
Still having the same issues, but 4.6.0b17 is what my version says, Iâll try a recent patch release to see if that fixes it. Hope it does, this Combobox looks pretty awesome!
It works for me on 4.6.2, and on 5.0rc2
I think scrollbar sensitivity wasnât added until 4.6 b18 âŚ
Why work with an old beta version anyways, thats begging for trouble : p

