Class TextEditor
Assembly: UnityEngine.dll
Syntax
Constructors
|
Improve this Doc
View Source
TextEditor()
Declaration
Fields
|
Improve this Doc
View Source
controlID
Declaration
Field Value
|
Improve this Doc
View Source
graphicalCursorPos
Declaration
public Vector2 graphicalCursorPos
Field Value
|
Improve this Doc
View Source
graphicalSelectCursorPos
Declaration
public Vector2 graphicalSelectCursorPos
Field Value
|
Improve this Doc
View Source
hasHorizontalCursorPos
Declaration
public bool hasHorizontalCursorPos
Field Value
|
Improve this Doc
View Source
isPasswordField
Declaration
public bool isPasswordField
Field Value
|
Improve this Doc
View Source
keyboardOnScreen
Declaration
public TouchScreenKeyboard keyboardOnScreen
Field Value
|
Improve this Doc
View Source
multiline
Declaration
Field Value
|
Improve this Doc
View Source
scrollOffset
Declaration
public Vector2 scrollOffset
Field Value
|
Improve this Doc
View Source
style
Declaration
Field Value
Properties
|
Improve this Doc
View Source
altCursorPosition
Declaration
public int altCursorPosition { get; set; }
Property Value
|
Improve this Doc
View Source
content
Declaration
[Obsolete("Please use 'text' instead of 'content'", false)]
public GUIContent content { get; set; }
Property Value
|
Improve this Doc
View Source
cursorIndex
Declaration
public int cursorIndex { get; set; }
Property Value
|
Improve this Doc
View Source
doubleClickSnapping
Declaration
public TextEditor.DblClickSnapping doubleClickSnapping { get; set; }
Property Value
|
Improve this Doc
View Source
hasSelection
Declaration
public bool hasSelection { get; }
Property Value
|
Improve this Doc
View Source
position
Declaration
public Rect position { get; set; }
Property Value
|
Improve this Doc
View Source
SelectedText
Declaration
public string SelectedText { get; }
Property Value
|
Improve this Doc
View Source
selectIndex
Declaration
public int selectIndex { get; set; }
Property Value
|
Improve this Doc
View Source
text
Declaration
public string text { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
Backspace()
Declaration
Returns
|
Improve this Doc
View Source
CanPaste()
Declaration
Returns
|
Improve this Doc
View Source
Copy()
Declaration
|
Improve this Doc
View Source
Cut()
Declaration
Returns
|
Improve this Doc
View Source
DblClickSnap(TextEditor.DblClickSnapping)
Declaration
public void DblClickSnap(TextEditor.DblClickSnapping snapping)
Parameters
|
Improve this Doc
View Source
Delete()
Declaration
Returns
|
Improve this Doc
View Source
DeleteLineBack()
Declaration
public bool DeleteLineBack()
Returns
|
Improve this Doc
View Source
DeleteSelection()
Declaration
public bool DeleteSelection()
Returns
|
Improve this Doc
View Source
DeleteWordBack()
Declaration
public bool DeleteWordBack()
Returns
|
Improve this Doc
View Source
DeleteWordForward()
Declaration
public bool DeleteWordForward()
Returns
|
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
|
Improve this Doc
View Source
HandleKeyEvent(Event)
Declaration
public bool HandleKeyEvent(Event e)
Parameters
Type |
Name |
Description |
Event |
e |
|
Returns
|
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
|
Improve this Doc
View Source
MouseDragSelectsWholeWords(Boolean)
Declaration
public void MouseDragSelectsWholeWords(bool on)
Parameters
|
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
|
Improve this Doc
View Source
MoveDown()
Declaration
|
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
|
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
|
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
|
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
|
Improve this Doc
View Source
OnLostFocus()
Declaration
public void OnLostFocus()
|
Improve this Doc
View Source
Paste()
Declaration
Returns
|
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
|
Improve this Doc
View Source
SelectAll()
Declaration
|
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
|
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
|
Improve this Doc
View Source
SelectNone()
Declaration
|
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
|
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
|
Improve this Doc
View Source
UpdateScrollOffsetIfNeeded(Event)
Declaration
public void UpdateScrollOffsetIfNeeded(Event evt)
Parameters
Type |
Name |
Description |
Event |
evt |
|
Extension Methods