MouseEnter fires even though there is an ui element blocking it

Let me know if this is the not the right category by the way.

So this game has color settings and i made a color picker for the settings for convenience but i encountered a problem where when you try to use the color picker it instead it selects the textbox behind the color picker which i don’t know why it is doing that.

image
(ignore the weird crude red text that was for a someone else lol)

As you can see the cursor changes to the typing cursor and it hightlights so it detects the MouseEnter event.

Things i tried but it didn’t work:

  • Not a ZIndex issue, i tried to do a bunch of stuff but nope
  • Not a parent issue, i parented the color picker to the holder instead of the text box (i cant parent it to the parent of the holder because of well positioning and other stuff)
  • Both of the above
  • I tried disabling every other text boxes TextEditable and enabling them but they still triggered input (this one might work maybe i did it wrong)

If you want to know more please ask i will answer as soon as i can

Try turning on Active property of the colors frame.

Ok so i fixed this by disabling the Interactable property of the text boxes other than the open text box.
I don’t think this is the best way though it seems a bit hacky, if anyone has a better solution then you can message me directly.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.