Home > Enterprise >  My Text Is Somehow Covering My Button In Unity, I Can't Click The Button Unless I Avoid Clickin
My Text Is Somehow Covering My Button In Unity, I Can't Click The Button Unless I Avoid Clickin

Time:01-21

When I want to click my button (TextMeshPro) I can click the button, but I cant have my cursor directly on top of the text.

Here is my button interactability

Yet my button is not highlighted when I have my cursor over it (cursor disappears in a screen snip)

I am setting a different GameObject to active, but when I hover the cursor over the button, there is not highlighted area.

CodePudding user response:

I figured out why it wasn't working! In order to create my options button, (a seperate button) I copied and pasted the play button, and I had not written a code for options, so I was clicking the options button which had no action. The options button was on top of the play button. Sorry, I should have looked farther into it.

  • Related