How do I display a button as pressed using Handles.Button
I'm trying to make a custom editor where I press a button to enable an editing feature shown in the scene. I want this button to be a toggle, and so I want to display the button as pressed when the editing feature is turned on. How can I do this if it's possible at all?
For reference, the edge collider component has an "Edit Collider" button that does exactly what I want.
Thanks in advance!
Answer by Program-Gamer · Mar 23, 2019 at 03:26 PM
Nevermind, the second answer in this question solves my problem. It turns out you can style a toggle to appear the same as a button.
https://answers.unity.com/questions/314926/make-a-button-behave-like-a-toggle.html
Your answer
![](https://koobas.hobune.stream/wayback/20220612194130im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Handle button being press 0 Answers
How to make button rotate when another button is pressed? 0 Answers
Blend Cubemap Skybox Shader to Panoramic Shader 0 Answers
OnTriggerEnter and UI button 2 Answers