how to not show a specific array element with property drawer

Hi,

I have an array of class which I display all of the elements in the inspector using PropertyDrawer. I want to create a bool button for each element in the array so when I click it that specific array element (or some variables in it) would not be diplayed. any idea?

This certainly sounds specific enough that you just need to write a little custom editor for it.

Thank you replaying, I already have a PropertyDrawer, can I also use a CustomEditor for the same script?