Show / Hide Table of Contents

Class TextEditor

Inheritance
Object
TextEditor
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: UnityEngine
Assembly: UnityEngine.dll
Syntax
public class TextEditor

Constructors

| Improve this Doc View Source

TextEditor()

Declaration
public TextEditor()

Fields

| Improve this Doc View Source

controlID

Declaration
public int controlID
Field Value
Type Description
Int32
| Improve this Doc View Source

graphicalCursorPos

Declaration
public Vector2 graphicalCursorPos
Field Value
Type Description
Vector2
| Improve this Doc View Source

graphicalSelectCursorPos

Declaration
public Vector2 graphicalSelectCursorPos
Field Value
Type Description
Vector2
| Improve this Doc View Source

hasHorizontalCursorPos

Declaration
public bool hasHorizontalCursorPos
Field Value
Type Description
Boolean
| Improve this Doc View Source

isPasswordField

Declaration
public bool isPasswordField
Field Value
Type Description
Boolean
| Improve this Doc View Source

keyboardOnScreen

Declaration
public TouchScreenKeyboard keyboardOnScreen
Field Value
Type Description
TouchScreenKeyboard
| Improve this Doc View Source

multiline

Declaration
public bool multiline
Field Value
Type Description
Boolean
| Improve this Doc View Source

scrollOffset

Declaration
public Vector2 scrollOffset
Field Value
Type Description
Vector2
| Improve this Doc View Source

style

Declaration
public GUIStyle style
Field Value
Type Description
GUIStyle

Properties

| Improve this Doc View Source

altCursorPosition

Declaration
public int altCursorPosition { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

content

Declaration
[Obsolete("Please use 'text' instead of 'content'", false)]
public GUIContent content { get; set; }
Property Value
Type Description
GUIContent
| Improve this Doc View Source

cursorIndex

Declaration
public int cursorIndex { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

doubleClickSnapping

Declaration
public TextEditor.DblClickSnapping doubleClickSnapping { get; set; }
Property Value
Type Description
TextEditor.DblClickSnapping
| Improve this Doc View Source

hasSelection

Declaration
public bool hasSelection { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

position

Declaration
public Rect position { get; set; }
Property Value
Type Description
Rect
| Improve this Doc View Source

SelectedText

Declaration
public string SelectedText { get; }
Property Value
Type Description
String
| Improve this Doc View Source

selectIndex

Declaration
public int selectIndex { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

text

Declaration
public string text { get; set; }
Property Value
Type Description
String

Methods

| Improve this Doc View Source

Backspace()

Declaration
public bool Backspace()
Returns
Type Description
Boolean
| Improve this Doc View Source

CanPaste()

Declaration
public bool CanPaste()
Returns
Type Description
Boolean
| Improve this Doc View Source

Copy()

Declaration
public void Copy()
| Improve this Doc View Source

Cut()

Declaration
public bool Cut()
Returns
Type Description
Boolean
| Improve this Doc View Source

DblClickSnap(TextEditor.DblClickSnapping)

Declaration
public void DblClickSnap(TextEditor.DblClickSnapping snapping)
Parameters
Type Name Description
TextEditor.DblClickSnapping snapping
| Improve this Doc View Source

Delete()

Declaration
public bool Delete()
Returns
Type Description
Boolean
| Improve this Doc View Source

DeleteLineBack()

Declaration
public bool DeleteLineBack()
Returns
Type Description
Boolean
| Improve this Doc View Source

DeleteSelection()

Declaration
public bool DeleteSelection()
Returns
Type Description
Boolean
| Improve this Doc View Source

DeleteWordBack()

Declaration
public bool DeleteWordBack()
Returns
Type Description
Boolean
| Improve this Doc View Source

DeleteWordForward()

Declaration
public bool DeleteWordForward()
Returns
Type Description
Boolean
| Improve this Doc View Source

DetectFocusChange()

Declaration
public void DetectFocusChange()
| Improve this Doc View Source

DrawCursor(String)

Declaration
public void DrawCursor(string newText)
Parameters
Type Name Description
String newText
| Improve this Doc View Source

ExpandSelectGraphicalLineEnd()

Declaration
public void ExpandSelectGraphicalLineEnd()
| Improve this Doc View Source

ExpandSelectGraphicalLineStart()

Declaration
public void ExpandSelectGraphicalLineStart()
| Improve this Doc View Source

FindStartOfNextWord(Int32)

Declaration
public int FindStartOfNextWord(int p)
Parameters
Type Name Description
Int32 p
Returns
Type Description
Int32
| Improve this Doc View Source

HandleKeyEvent(Event)

Declaration
public bool HandleKeyEvent(Event e)
Parameters
Type Name Description
Event e
Returns
Type Description
Boolean
| Improve this Doc View Source

Insert(Char)

Declaration
public void Insert(char c)
Parameters
Type Name Description
Char c
| Improve this Doc View Source

IsOverSelection(Vector2)

Declaration
public bool IsOverSelection(Vector2 cursorPosition)
Parameters
Type Name Description
Vector2 cursorPosition
Returns
Type Description
Boolean
| Improve this Doc View Source

MouseDragSelectsWholeWords(Boolean)

Declaration
public void MouseDragSelectsWholeWords(bool on)
Parameters
Type Name Description
Boolean on
| Improve this Doc View Source

MoveAltCursorToPosition(Vector2)

Declaration
public void MoveAltCursorToPosition(Vector2 cursorPosition)
Parameters
Type Name Description
Vector2 cursorPosition
| Improve this Doc View Source

MoveCursorToPosition(Vector2)

Declaration
public void MoveCursorToPosition(Vector2 cursorPosition)
Parameters
Type Name Description
Vector2 cursorPosition
| Improve this Doc View Source

MoveCursorToPosition_Internal(Vector2, Boolean)

Declaration
protected void MoveCursorToPosition_Internal(Vector2 cursorPosition, bool shift)
Parameters
Type Name Description
Vector2 cursorPosition
Boolean shift
| Improve this Doc View Source

MoveDown()

Declaration
public void MoveDown()
| Improve this Doc View Source

MoveGraphicalLineEnd()

Declaration
public void MoveGraphicalLineEnd()
| Improve this Doc View Source

MoveGraphicalLineStart()

Declaration
public void MoveGraphicalLineStart()
| Improve this Doc View Source

MoveLeft()

Declaration
public void MoveLeft()
| Improve this Doc View Source

MoveLineEnd()

Declaration
public void MoveLineEnd()
| Improve this Doc View Source

MoveLineStart()

Declaration
public void MoveLineStart()
| Improve this Doc View Source

MoveParagraphBackward()

Declaration
public void MoveParagraphBackward()
| Improve this Doc View Source

MoveParagraphForward()

Declaration
public void MoveParagraphForward()
| Improve this Doc View Source

MoveRight()

Declaration
public void MoveRight()
| Improve this Doc View Source

MoveSelectionToAltCursor()

Declaration
public void MoveSelectionToAltCursor()
| Improve this Doc View Source

MoveTextEnd()

Declaration
public void MoveTextEnd()
| Improve this Doc View Source

MoveTextStart()

Declaration
public void MoveTextStart()
| Improve this Doc View Source

MoveToEndOfPreviousWord()

Declaration
public void MoveToEndOfPreviousWord()
| Improve this Doc View Source

MoveToStartOfNextWord()

Declaration
public void MoveToStartOfNextWord()
| Improve this Doc View Source

MoveUp()

Declaration
public void MoveUp()
| Improve this Doc View Source

MoveWordLeft()

Declaration
public void MoveWordLeft()
| Improve this Doc View Source

MoveWordRight()

Declaration
public void MoveWordRight()
| Improve this Doc View Source

OnFocus()

Declaration
public void OnFocus()
| Improve this Doc View Source

OnLostFocus()

Declaration
public void OnLostFocus()
| Improve this Doc View Source

Paste()

Declaration
public bool Paste()
Returns
Type Description
Boolean
| Improve this Doc View Source

ReplaceSelection(String)

Declaration
public void ReplaceSelection(string replace)
Parameters
Type Name Description
String replace
| Improve this Doc View Source

SaveBackup()

Declaration
public void SaveBackup()
| Improve this Doc View Source

SelectAll()

Declaration
public void SelectAll()
| Improve this Doc View Source

SelectCurrentParagraph()

Declaration
public void SelectCurrentParagraph()
| Improve this Doc View Source

SelectCurrentWord()

Declaration
public void SelectCurrentWord()
| Improve this Doc View Source

SelectDown()

Declaration
public void SelectDown()
| Improve this Doc View Source

SelectGraphicalLineEnd()

Declaration
public void SelectGraphicalLineEnd()
| Improve this Doc View Source

SelectGraphicalLineStart()

Declaration
public void SelectGraphicalLineStart()
| Improve this Doc View Source

SelectLeft()

Declaration
public void SelectLeft()
| Improve this Doc View Source

SelectNone()

Declaration
public void SelectNone()
| Improve this Doc View Source

SelectParagraphBackward()

Declaration
public void SelectParagraphBackward()
| Improve this Doc View Source

SelectParagraphForward()

Declaration
public void SelectParagraphForward()
| Improve this Doc View Source

SelectRight()

Declaration
public void SelectRight()
| Improve this Doc View Source

SelectTextEnd()

Declaration
public void SelectTextEnd()
| Improve this Doc View Source

SelectTextStart()

Declaration
public void SelectTextStart()
| Improve this Doc View Source

SelectToEndOfPreviousWord()

Declaration
public void SelectToEndOfPreviousWord()
| Improve this Doc View Source

SelectToPosition(Vector2)

Declaration
public void SelectToPosition(Vector2 cursorPosition)
Parameters
Type Name Description
Vector2 cursorPosition
| Improve this Doc View Source

SelectToStartOfNextWord()

Declaration
public void SelectToStartOfNextWord()
| Improve this Doc View Source

SelectUp()

Declaration
public void SelectUp()
| Improve this Doc View Source

SelectWordLeft()

Declaration
public void SelectWordLeft()
| Improve this Doc View Source

SelectWordRight()

Declaration
public void SelectWordRight()
| Improve this Doc View Source

Undo()

Declaration
public void Undo()
| Improve this Doc View Source

UpdateScrollOffsetIfNeeded(Event)

Declaration
public void UpdateScrollOffsetIfNeeded(Event evt)
Parameters
Type Name Description
Event evt

Extension Methods

MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
MustExtensions.MustBeNull<T>(T)
MustExtensions.MustBeNull<T>(T, String)
MustExtensions.MustNotBeNull<T>(T)
MustExtensions.MustNotBeNull<T>(T, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX