Skip to main content
Participating Frequently
March 20, 2024
Question

Create a UI button that remains pressed when clicked, and go back when clicked again

  • March 20, 2024
  • 1 reply
  • 206 views

Hello!

I would like to create a UI button that, when clicked, remains pressed, and when clicked again, returns to normal, the same way the BOLD button works, for example.

Is it possible?

I know how to make a button (icon and text). I'm using this guide to make my script:

https://vimeo.com/63760772

Thanks!

This topic has been closed for replies.

1 reply

Mylenium
Legend
March 20, 2024

You need to define different icon images and create separate loops in your code that represent the branching based on what the state is supposed to be.

 

Mylenium

Participating Frequently
March 26, 2024

Thank you! Your sugestion worked very well.