public override void OnInspectorGUI() { EGUILayout.DrawScript(target); DrawerSetting.OnDrawSetting(); EGUI.BeginLabelWidth(GetLabelWidth()); { drawerObject.OnGUILayout(); } EGUI.EndLableWidth(); }
public override void OnInspectorGUI() { if (attr != null) { EGUILayout.DrawScript(target); DrawerSetting.OnDrawSetting(); EGUI.BeginLabelWidth(attr.LabelWidth); { drawerObject.OnGUILayout(); } EGUI.EndLableWidth(); } else { base.OnInspectorGUI(); } }