Search Unity

Question Button Highlighted color over text dosnt work

Discussion in 'Immediate Mode GUI (IMGUI)' started by Jean-Batailleur, Nov 3, 2022.

  1. Jean-Batailleur

    Jean-Batailleur

    Joined:
    Jun 26, 2021
    Posts:
    2
    Hi,

    I have a problem, i try to highlighted color on a button when mouse is over, but when mouse is over the texte of the button, its not working. Is any way so they associate the text with the button? (text is child of button).

    Thanks!
     
  2. Jean-Batailleur

    Jean-Batailleur

    Joined:
    Jun 26, 2021
    Posts:
    2
    i find the solution, i have scaled the text of the button smaller, so now it dosnt detect it like a button anymore, i resize it back and its work perfectly.