// protected string /* * public DisplayModifierDrawer():base() * { * * }*/ public void Init(SerializedProperty property, GUIContent label) { dispModAttr = (attribute as DisplayModifierAttribute); if (property.hasVisibleChildren && dispModAttr.foldingMode == FoldingMode.NoFoldout && children.IsNull()) { noChildrenFolder = true; children = new ChildrenProperties(fieldInfo); } else if (dispModAttr.foldingMode == FoldingMode.Expanded && !property.isExpanded) { property.isExpanded = true; } decorationFlags = dispModAttr.decorationFlags; if (!checkedForRange) { ReadRangeOptionalAttribute(); } if (!checkedForExtraLine) { ReadExtraLineAttribute(); } if (!checkedForTextArea) { ReadTextAreaAttribute(); } isInit = true; }
protected void ReadExtraLineAttribute() { DisplayModifierAttribute attr = attribute as DisplayModifierAttribute; extraLabelLine = attr.extraLabelLine; }