Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Remove Scroll bar from combobox

Discussion in 'Immediate Mode GUI (IMGUI)' started by iainprice, Apr 7, 2022.

  1. iainprice

    iainprice

    Joined:
    Apr 4, 2018
    Posts:
    6
    Hi,

    I have a generated combobox but sometimes it is too large and so has a scroll bar on the side. The problem is that if you try to scroll with the bar, this is classed as clicking off the combobox and my code destroys the combobox if you click off it. Is there a way to detect clicking on the scrollbar? Or forcing the dropdown to show all items rather than having a scroll bar? Or is there another way to create a list of clickable items to be selected?

    Thanks