KeyboardPreview Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.MonoBehaviourKeyboardPreview
- 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. |