Custom editor and Custom Attributes

Hi,

I have attribute X which has an overridden drawer. The component I use x in has custom editor draw code. This then means that the overrideen drawer( for x) does not run. Is it possible to tell the custom editor to draw particular fields as default, and some as required?
(many fields needs to be turned on and off, depending on options, hence the need for the custom editor)

x is used in many other places.

The script that draws your custom editor is immediate mode, so you should be able to examine properties on the object (or anything else it has visibility to) and draw or don’t draw based on those values. e.g.

if (some property is true)
{
    // do my gui stuff 
}

If value changes on the property in question I believe you have to tell Unity that the editor is dirty. Not sure how to do that off the top of my head.