/
πŸ“
Buttons, Inputs
Search
Try Notion
πŸ“πŸ“
Buttons, Inputs
Buttons
VR UIKit includes several predefined button styles.
Inputs
VR UIKit includes two input styles - line style and border style.
Customised Input Field
The CustomiseInputField in the UIKits/Prefabs/Mobile/Inputs folder is designed for Android based VR devices such as Oculus Quest or Gear VR. Unity's original input field tends to trigger the built-in Android keyboard when it gets selected. The customised input field is designed to bypass this issue.
⌨️
To work with the CustomiseInputField, please use the keyboard in the Prefabs/Mobile/Keyboard folder.
The main logic of CustomiseInputField is in the UIKitInputField.cs. The public properties are as follows.
Properties
Search
Name
Type
Description
string
The current value of the input field.
int
How many characters the input field is limited to.
UIKitInputField.ContentType
Specifies the type of the input text content including Standard and Password
float
The blinking rate of the input caret, defined as the number of times the blink cycle occurs per second.
Count4
// Example of getting the text from CustomiseInputField using VRUiKits.Utils; public class Example : MonoBehaviour { public UIKitInputField inputfield; string output = inputfield.text; }
C#