public override bool InspectSelf(Inspector inspector, string name, ref object data, Type type) { var obj = data as Object; if (obj != null) { obj = GUITools.ObjectField(obj, type); } else { obj = GUITools.ObjectField(null, type); } return(ApplyValueIfNotEqual(ref data, obj)); }