Language
Edit

KeyboardPreview Class

Definition

Component to manage the visuals for a Mixed Reality Keyboard Preview window.

[UnityEngine.AddComponentMenu("MRTK/UX/Keyboard Preview")]
public class KeyboardPreview : UnityEngine.MonoBehaviour
[<UnityEngine.AddComponentMenu("MRTK/UX/Keyboard Preview")>]
type KeyboardPreview = class
    inherit MonoBehaviour
Public Class KeyboardPreview
Inherits MonoBehaviour
Inheritance
UnityEngine.MonoBehaviour
KeyboardPreview
Attributes
UnityEngine.AddComponentMenuAttribute

Constructors

Name Description
KeyboardPreview()

Properties

Name Description
CaretIndex

Where the caret lies within the text.

PreviewCaret

The transform to move based on the preview caret.

PreviewText

The Text Mesh Pro text field to display the preview text.

Text

The text to display in the preview.

Methods

Name Description
InvalidateLayout()

Force the PreviewText label and PreviewCaret transform to update their positions on the next update.

ToggleSolvers()

Utility method which can be used to toggle if solvers update.

Applies to