API reference
API reference
Select your platform
No SDKs available
No versions available

Overview

Public Types

enum
KeyboardPosition {
}
The initial position of the keyboard, which determines the input style used to type.
enum

Events

Action< string >
Occurs when text has been committed @params (string text)
Action
Occurs when a backspace is pressed.
Action
Enter ( )
Occurs when a return key is pressed.
Action
Occurs when keyboard is shown.
Action
Occurs when keyboard is hidden.

Properties

Collider
InputField

Data Fields

Transform
Configure with the transform representing the left controller input.
Transform
Transform
Configure with the transform representing the right controller input.
Transform
bool
Enables the controllers to directly interact with the keyboard.
bool
Enables the controllers to send ray interactions to the keyboard.
Configures the raycast mask used when sending raycast controller input to the keyboard.
The OVRHand representing the left hand.
The OVRHand representing the right hand.
bool
Enables tracked hands to directly interact with the keyboard.
bool
Enables tracked hands to send ray interactions to the keyboard.
Configures the raycast mask used when sending raycast hand input to the keyboard.
Shader
The shader used to render the keyboard’s glTF materials.
Shader
The shader used to render the keyboard’s glTF alpha blended materials.
bool
If false, prevents all keyboard input.
UnityEvent
UnityEvent
UnityEvent
UnityEvent

Public Member Functions

void
Updates the keyboard to a reference position.
void
SendVirtualKeyboardRayInput
( Transform inputTransform,
InputSource source,
bool isPressed,
bool useRaycastMask )
Sends a ray input to the keyboard from a given transform.
void
SendVirtualKeyboardDirectInput
( Vector3 position,
InputSource source,
bool isPressed,
Transform interactorRootTransform )
Sends a direct input to the keyboard from a given transform.
void
ChangeTextContext
( string textContext )
Enables custom handling of text context.
void

Details

Member Enumerations

enum OVRVirtualKeyboard.KeyboardPosition
The initial position of the keyboard, which determines the input style used to type.
Enumerator
Far
= 0
Near
= 1
Direct
= 1
Custom
= 2
enum OVRVirtualKeyboard.InputSource
Enumerator
ControllerLeft
ControllerRight
HandLeft
HandRight

Events

Action<string> OVRVirtualKeyboard.CommitText ( )
Occurs when text has been committed @params (string text)
Action OVRVirtualKeyboard.Backspace ( )
Occurs when a backspace is pressed.
Action OVRVirtualKeyboard.Enter ( )
Occurs when a return key is pressed.
Action OVRVirtualKeyboard.KeyboardShown ( )
Occurs when keyboard is shown.
Action OVRVirtualKeyboard.KeyboardHidden ( )
Occurs when keyboard is hidden.

Properties

Collider OVRVirtualKeyboard.Collider
No description available.
InputField OVRVirtualKeyboard.TextCommitField
No description available.
ITextHandler OVRVirtualKeyboard.TextHandler
No description available.

Fields

Transform OVRVirtualKeyboard.leftControllerRootTransform
Configure with the transform representing the left controller input.
Transform OVRVirtualKeyboard.leftControllerDirectTransform
No description available.
Transform OVRVirtualKeyboard.rightControllerRootTransform
Configure with the transform representing the right controller input.
Transform OVRVirtualKeyboard.rightControllerDirectTransform
No description available.
bool OVRVirtualKeyboard.controllerDirectInteraction
Enables the controllers to directly interact with the keyboard.
bool OVRVirtualKeyboard.controllerRayInteraction
Enables the controllers to send ray interactions to the keyboard.
OVRPhysicsRaycaster OVRVirtualKeyboard.controllerRaycaster
Configures the raycast mask used when sending raycast controller input to the keyboard.
OVRHand OVRVirtualKeyboard.handLeft
The OVRHand representing the left hand.
Requires the OVRHand to also have an OVRSkeleton.
OVRHand OVRVirtualKeyboard.handRight
The OVRHand representing the right hand.
Requires the OVRHand to also have an OVRSkeleton.
bool OVRVirtualKeyboard.handDirectInteraction
Enables tracked hands to directly interact with the keyboard.
bool OVRVirtualKeyboard.handRayInteraction
Enables tracked hands to send ray interactions to the keyboard.
OVRPhysicsRaycaster OVRVirtualKeyboard.handRaycaster
Configures the raycast mask used when sending raycast hand input to the keyboard.
Shader OVRVirtualKeyboard.keyboardModelShader
The shader used to render the keyboard’s glTF materials.
Shader OVRVirtualKeyboard.keyboardModelAlphaBlendShader
The shader used to render the keyboard’s glTF alpha blended materials.
bool OVRVirtualKeyboard.InputEnabled
If false, prevents all keyboard input.
CommitTextUnityEvent OVRVirtualKeyboard.CommitTextEvent
No description available.
UnityEvent OVRVirtualKeyboard.BackspaceEvent
No description available.
UnityEvent OVRVirtualKeyboard.EnterEvent
No description available.
UnityEvent OVRVirtualKeyboard.KeyboardShownEvent
No description available.
UnityEvent OVRVirtualKeyboard.KeyboardHiddenEvent
No description available.

Member Functions

void OVRVirtualKeyboard.UseSuggestedLocation
( KeyboardPosition position )
Updates the keyboard to a reference position.
void OVRVirtualKeyboard.SendVirtualKeyboardRayInput
( Transform inputTransform,
InputSource source,
bool isPressed,
bool useRaycastMask )
Sends a ray input to the keyboard from a given transform.
Parameters
inputTransform
GameObject Transform with the pose and forward orientation of the input ray.
source
Input source to use (ex. Controller/Hand Left/Right).
isPressed
If true, will trigger a key press if the ray collides with a keyboard key.
useRaycastMask
Defaults to true. Will use the configured raycast mask for the given input source.
void OVRVirtualKeyboard.SendVirtualKeyboardDirectInput
( Vector3 position,
InputSource source,
bool isPressed,
Transform interactorRootTransform )
Sends a direct input to the keyboard from a given transform.
Parameters
position
The collision point which is interacting with the keyboard. For example, a hand index finger tip.
source
The input source to use (ex. Controller/Hand Left/Right).
isPressed
If the input is triggering a press or not.
void OVRVirtualKeyboard.ChangeTextContext
( string textContext )
Enables custom handling of text context.
Use this when changing input fields or if the input text has changed via another script.
void OVRVirtualKeyboard.AutoPopulate ( )
No description available.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon