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!