Keyboard
You can create custom VR keyboards and add them to the keyboard selection in Skyreal VR.
Step 1 — Create the Keyboard Description
-
Open the Content Browser and navigate to any
RegistrableAssetsfolder.
[IMAGE: RegistrableAssets folder — original at /pictures/v1.19/keyboard_custom_folder.png]
-
Right-click to open the asset creation menu. Select Miscellaneous > DataAsset.
[IMAGE: Create DataAsset — original at /pictures/v1.19/keyboard_custom_DA.png]
-
Select the class KeyboardDescription and name your data asset.
[IMAGE: KeyboardDescription class — original at /pictures/v1.19/keyboard_custom_description.png]
-
Skyreal VR scans all
RegistrableAssetsfolders at launch, so restart Skyreal VR to use your new keyboard.
Step 2 — Create the Keyboard Blueprint
There are two keyboard types:
|
Keyboard Type |
Blueprint Type |
Parent Class |
|---|---|---|
|
2D |
WidgetBlueprint |
|
|
3D |
Actor |
|
2D Keyboard
-
Create a WidgetBlueprint and open it.
-
Click Graph in the upper right corner.
-
Click Class Settings.
-
Set the Parent Class to CustomizableWidgetKeyboard.
[IMAGE: Reparent 2D keyboard — original at /pictures/v1.19/Keyboard_custom_Etape3.png]
3D Keyboard
-
Create an Actor blueprint.
-
Click Class Settings and set Parent Class to Customizable3DKeyboard.
[IMAGE: Reparent 3D keyboard — original at /pictures/v1.19/Keyboard_custom_Etape4.png]
Step 3 — Link Description to Blueprint
-
Open your keyboard description data asset.
-
Enter a name in the Skr Display Name field.
-
Link it to your keyboard blueprint (2D or 3D).
-
Assign an icon.
[IMAGE: Link keyboard description — original at /pictures/v1.19/Keyboard_custom_Etape5.png]
[IMAGE: Keyboard icon — original at /pictures/v1.19/Keyboard_custom_Etape6.png]
Your keyboard now appears in the keyboard selection dropdown.
[IMAGE: Keyboard selection dropdown — original at /pictures/v1.19/Keyboard_custom_combobox.png]
Step 4 — Implement Input Functions
Three functions are available for keyboard input:
|
Function |
Description |
|---|---|
|
Write |
Prints a string to the text box (requires a string parameter) |
|
Erase |
Deletes the last character |
|
Validate |
Confirms the input |
Call these functions from your button events (e.g., OnClicked).