Пример #1
0
        private GUIContent GetParameterLabel(KeyValuePair <string, string> documentation, Type type)
        {
            var label = BoltCore.Configuration.humanNaming ? StringUtility.Prettify(documentation.Key) : documentation.Key;

            if (showType && type != null)
            {
                return(new GUIContent($"<b>{label}: </b>{documentation.Value} ({type.CSharpName(false)})"));
            }
            else
            {
                return(new GUIContent($"<b>{label}: </b>{documentation.Value}"));
            }
        }