void AddBuiltinKeyword(GenericMenu gm, ShaderKeyword keyword) { if (m_Graph.keywords.Where(x => x.referenceName == keyword.referenceName).Any()) { gm.AddDisabledItem(new GUIContent($"Keyword/{keyword.displayName}")); } else { gm.AddItem(new GUIContent($"Keyword/{keyword.displayName}"), false, () => AddInputRow(keyword.Copy(), true)); } }