What is "Selection Type" from Combo Box OnSelectionChanged node?
Made a combo box that is almost functional, but I am not seeing the output I expected from the "Selection Type" output on the OnSelectionChanged node. It is giving me 2 every time. even with a drop down that only has 2 items. I was hoping that it the first item in the list would be 0, the second 1, and so on but that either isn't the case or I am running into a bug.
I would prefer not to use the Selected Item as that would force me to make the code more bloated than would be the case if I were getting an index of the selection of the dropdown. Any help would be appreciated!
asked Jan 30 '16 at 10:01 AM in Blueprint Scripting
The Selection Type output pin outputs what type of input was used to make the selection. For example if you use a mouse and selects the option using a mouse click it will output "On Mouse Click".
answered Mar 15 '17 at 07:56 AM
Unfortunately you have to use SelectedItem (String). It's the only way Unreal communicates to you what item was selected. SelectionType can not be used, it just tells you if a mouse cursor or keyboard was used to make the selection.
However you can still turn the String into an index like you want, by calling:
answered Jul 10 '17 at 10:30 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here