/* Setter & Getter */ /* Functions */ public override void OnInspectorGUI() { HierarchyUtil.CreateInfo(INFO); this.mTarget = (HierarchyControlPanel)this.target; EditorGUI.BeginChangeCheck(); DrawOption(HierarchyData.f_alterRowShading, ref mTarget.f_alterRowShading, "Alternate Row Shading", @"Enable feature Alternate Row Shading"); DrawOption(HierarchyData.f_separator, ref mTarget.f_separator, "Separator", @"Enable feature Separator"); DrawOption(HierarchyData.f_tree, ref mTarget.f_tree, "Tree", @"Enable feature Tree"); DrawOption(HierarchyData.f_log, ref mTarget.f_log, "Logs", @"Enable feature Logs"); DrawOption(HierarchyData.f_icons, ref mTarget.f_icons, "Icons", @"Enable feature Icons"); DrawOption(HierarchyData.f_components, ref mTarget.f_components, "Components", @"Enable feature Components"); DrawOption(HierarchyData.f_tag, ref mTarget.f_tag, "Tag", @"Enable feature Tag"); DrawOption(HierarchyData.f_layer, ref mTarget.f_layer, "Layer", @"Enable feature Layer"); DrawOption(HierarchyData.f_instanceID, ref mTarget.f_instanceID, "Instance ID", @"Enable feature Instance ID"); if (EditorGUI.EndChangeCheck()) { EditorUtility.SetDirty(mTarget); } }
/* Functions */ private void Update() { _instance = this; }