ClampLength() static private method

static private ClampLength ( string str, int maxLength ) : string
str string
maxLength int
return string
Ejemplo n.º 1
0
    public static string TextArea(string name, string text, int maxLength, GUIStyle style, params GUILayoutOption[] options)
    {
        CoreAutoSelect.Pre(name);
        string tmp = EditorGUICommon.ClampLength(EditorGUILayout.TextArea(text, style, options), maxLength);

        CoreAutoSelect.Post(name);
        return(tmp);
    }
Ejemplo n.º 2
0
    public static string TextArea(string name, Rect pos, string text, int maxLength, GUIStyle style)
    {
        CoreAutoSelect.Pre(name);
        string tmp = EditorGUICommon.ClampLength(EditorGUI.TextArea(pos, text, style), maxLength);

        CoreAutoSelect.Post(name);
        return(tmp);
    }