GvrKeyboard
Handles keyboard state management such as hiding and displaying the keyboard, directly modifying text and stereoscopic rendering.
Summary
Inheritance
Inherits from: MonoBehaviour| Public attributes | |
|---|---|
| distance = 0 | floatThe distance to the keyboard. | 
| inputMode = GvrKeyboardInputMode.DEFAULT | GvrKeyboardInputModeThe input mode of the keyboard. | 
| keyboardDelegate = null | Delegate to handle keyboard events and input. | 
| useRecommended = true | boolFlag to use the recommended world matrix for the keyboard. | 
| Properties | |
|---|---|
| EditorText | stringGets or sets the text being affected by this keyboard.  | 
| IsReady | boolGets a value indicating whether this keyboard is ready.  | 
| IsValid | boolGets a value indicating whether this keyboard instance is valid.  | 
| Mode | GvrKeyboardInputModeGets the current input mode of the keyboard.  | 
| WorldMatrix | Matrix4x4Gets the world matrix of the keyboard.  | 
| Public functions | |
|---|---|
| ClearText() | voidResets keyboard text. | 
| EditTextCallback(string edit_text) | delegate voidEdit text keyboard delegate type.  | 
| ErrorCallback(GvrKeyboardError err) | delegate voidKeyboard error delegate type.  | 
| Hide() | voidHides the keyboard. | 
| KeyboardCallback(IntPtr closure, GvrKeyboardEvent evt) | delegate voidKeyboard delegate type.  | 
| OnPointerClick(BaseEventData data) | voidHandle a pointer click on the keyboard.  | 
| Show() | voidShows the keyboard. | 
| StandardCallback() | delegate voidStandard keyboard delegate type. | 
Public attributes
distance
float distance = 0
The distance to the keyboard.
inputMode
GvrKeyboardInputMode inputMode = GvrKeyboardInputMode.DEFAULT
The input mode of the keyboard.
keyboardDelegate
GvrKeyboardDelegateBase keyboardDelegate = null
Delegate to handle keyboard events and input.
useRecommended
bool useRecommended = true
Flag to use the recommended world matrix for the keyboard.
Properties
EditorText
string EditorText
Gets or sets the text being affected by this keyboard.
The text being affected by this keyboard.
IsReady
bool IsReady
Gets a value indicating whether this keyboard is ready.
Value true if this keyboard is ready, false otherwise.
IsValid
bool IsValid
Gets a value indicating whether this keyboard instance is valid.
Value true if this keyboard instance is valid, false otherwise.
Mode
GvrKeyboardInputMode Mode
Gets the current input mode of the keyboard.
The current input mode of the keyboard.
WorldMatrix
Matrix4x4 WorldMatrix
Gets the world matrix of the keyboard.
The world matrix of the keyboard.
Public functions
ClearText
void ClearText()
Resets keyboard text.
EditTextCallback
delegate void EditTextCallback( string edit_text )
Edit text keyboard delegate type.
| Details | |||
|---|---|---|---|
| Parameters | 
 | 
ErrorCallback
delegate void ErrorCallback( GvrKeyboardError err )
Keyboard error delegate type.
| Details | |||
|---|---|---|---|
| Parameters | 
 | 
Hide
void Hide()
Hides the keyboard.
KeyboardCallback
delegate void KeyboardCallback( IntPtr closure, GvrKeyboardEvent evt )
Keyboard delegate type.
| Details | |||||
|---|---|---|---|---|---|
| Parameters | 
 | 
OnPointerClick
void OnPointerClick( BaseEventData data )
Handle a pointer click on the keyboard.
| Details | |||
|---|---|---|---|
| Parameters | 
 | 
Show
void Show()
Shows the keyboard.
StandardCallback
delegate void StandardCallback()
Standard keyboard delegate type.