UnityEditor.RenameOverlay.DoTextField C# (CSharp) Method

DoTextField() private method

private DoTextField ( string text, GUIStyle textFieldStyle ) : string
text string
textFieldStyle UnityEngine.GUIStyle
return string
        private string DoTextField(string text, GUIStyle textFieldStyle)
        {
            bool flag;
            GUIStyle style;
            if (this.m_TextFieldControlID == 0)
            {
                Debug.LogError("RenameOverlay: Ensure to call OnEvent() as early as possible in the OnGUI of the current EditorWindow!");
            }
            if (s_DefaultTextFieldStyle == null)
            {
                s_DefaultTextFieldStyle = "PR TextField";
            }
            if (this.isRenamingFilename)
            {
                this.EatInvalidChars();
            }
            GUI.changed = false;
            if (GUIUtility.keyboardControl != this.m_TextFieldControlID)
            {
                GUIUtility.keyboardControl = this.m_TextFieldControlID;
            }
            if (textFieldStyle != null)
            {
                style = textFieldStyle;
            }
            else
            {
                style = s_DefaultTextFieldStyle;
            }
            Rect position = EditorGUI.IndentedRect(this.m_EditFieldRect);
            position.xMin -= style.padding.left;
            return EditorGUI.DoTextField(EditorGUI.s_RecycledEditor, this.m_TextFieldControlID, position, text, style, null, out flag, false, false, false);
        }