void EditTextRequested(Blackboard blackboard, VisualElement visualElement, string newText) { var field = (BlackboardField)visualElement; var property = (IShaderProperty)field.userData; if (!string.IsNullOrEmpty(newText) && newText != property.displayName) { m_Graph.owner.RegisterCompleteObjectUndo("Edit Property Name"); newText = m_Graph.SanitizePropertyName(newText, property.guid); property.displayName = newText; field.text = newText; DirtyNodes(); } }