/// <summary> /// Raises the GU event. /// </summary> /// <param name="position">Position.</param> public override void OnGUI(Rect position) { rect = position; ECPropertyAttribute _baseAttribute = Attribute <ECPropertyAttribute>(); if (_baseAttribute.LocalizeTitle != null && _baseAttribute.LocalizeTitle.text != null) { text = _baseAttribute.LocalizeTitle.text; } CustomGUI(rect); }
/// <summary> /// Raises the GU event. /// </summary> /// <param name="position">Position.</param> /// <param name="property">Property.</param> /// <param name="label">Label.</param> public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) { rect = position; serializedProperty = property; guiContent = label; ECPropertyAttribute _baseAttribute = Attribute <ECPropertyAttribute>(); if (_baseAttribute.LocalizeTitle != null && _baseAttribute.LocalizeTitle.text != null) { guiContent.text = _baseAttribute.LocalizeTitle.text; } CustomGUI(rect, serializedProperty, guiContent); }