public static void LayerNamePopup(GUIContent label, SkillString variable, object obj = null, FieldInfo field = null) { SkillEditorGUILayout.PrefixLabel(label); if (GUILayout.Button(variable.get_Value(), EditorStyles.get_popup(), new GUILayoutOption[0])) { StringEditor.editingVariable = variable; StringEditor.editingObject = obj; StringEditor.editingField = field; StringEditor.DoLayerMenu(); } }