Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

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.