- Home /
How do I access the "Edit Collider" function from the inspector in a custom editor.
I am writing a simple editor extension that sorts, manages, and allows for quicker placement of 2D colliders in the editor scene view. Currently I feel like having the neat "Edit Collider" button found on any collider's inspector component available next to the other editing options I have available would be an ideal way to improve flow of use.
I have been searching for an embarrassing amount of time now, and yet, I just can't seem to find the way to do this in the scripting API, I imagine it is right in front of me, but I just can't see it yet.
Does anyone know how to achieve this?
Answer by Landern · Oct 07, 2014 at 01:48 PM
You need to most likely use Handles and the HandlesUtility, in the documentation as you look through it, you will see many many many examples of in editor usage.
For instance, a Circle Collider 2D looks like the the handle used is DrawWireDisc
This looks like it will give me options, thank you good sir. Update: This works rather well.
Your answer
![](https://koobas.hobune.stream/wayback/20220613164559im_/https://answers.unity.com/themes/thub/images/avi.jpg)