Why does the unity button stay highlighted after clicking?

Why does the unity button stay highlighted after clicking?

Button stays highlighted after being clicked – Unity3D 4.6 GUI. Sometimes, after clicking a button created by unity’s new UI Button, the button stays in its highlight state. Note that Button script has Color Tint set as it’s Transition property and the Interactable checkbox is checked.

How to keep UI button in a pressed state in Unity 3D?

In Unity 3D, when you select a button, it will stay pressed until you click outside the button and basically goes back to its Normal Color. The problem is, I want the button to stay pressed (color-wise) when I click outside the button or scene. Does anyone know how to keep a button pressed or “selected” after clicking it?

How to enable or disable the button in Unity?

Use to enable or disable the ability to select a selectable UI element (for example, a Button). The Navigation setting for this selectable object. The SpriteState for this selectable object. Graphic that will be transitioned upon.

How can I solve this problem in Unity?

Note that Button script has Color Tint set as it’s Transition property and the Interactable checkbox is checked. How can I solve this? The Navigation property of buttons is set to Automatic by default, allowing you to navigate through buttons using arrow keys.

How to make a GUI button work in Unity?

If left out, the button style from the current GUISkin is used. bool true when the users clicks the button. Make a single press button. The user clicks them and something happens immediately. // Draws 2 buttons, one with an image, and other with a text // And print a message when they got clicked.

How to display text on a unity button?

Text to display on the button. Texture to display on the button. Text, image and tooltip for this button. The style to use. If left out, the button style from the current GUISkin is used. bool true when the users clicks the button. Make a single press button.