SHING MING, WONG
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    --- tags: VFSKeyboard, ReadMe, Unity Asset, VR, Unity --- # VFSKeyboard - VR, Fast and Simple ###### tags: VFSKeyboard, ReadMe, Unity Asset, VR, Unity ## OVERVIEW **VFSKeyboard is an open-source keyboard, as its name, suitable for VR development environment, fast and simple to use.** ## FEATURES ![](https://i.imgur.com/DXDvLVN.png) - Autofill to the corresponding inputField which is the last time select by user - Cross-platform building by Oculus Integration, SteamVR Plugin, Unity XR Interaction Toolkit - "One seconds" setup - Easy-to-use - Auto enable/disable the virtual keyboard when trigger/untrigger* the “InputField” UI component - Customize the keyboard button color when the user release, select, and press *Untrigger means the VR controller (or laser pointer) leave to point the keyboard area for about 3 seconds (default setting) ## FAST INSTALLATION 1. [important] **Make sure that your VR controller (or laser pointer) can interact with the UI component (e.g. click the button) in the scene first before using this asset** 2. Add the “InputField” gameObject and then add the “InputFieldDetection” script at this gameObject 3. Add the “Virtual Keyboard Controller” prefab in the scene 4. Drag the “Virtual Keyboard” prefab to the Canvas UI gameObject, become the childObject of the Canvas UI gameObject 5. Fine-tuning the UI component to a suitable position, and now you can play it now :) **p.s. In our unitypackage, our example scene is made by Unity XR Interaction Toolkit framework and using the Oculus Quest 2 for our testing. Install the Unity XR Interaction Toolkit framework and double-click the example scene to try it out!** ## INSTALLATION IN DETAILS ### Step 1 - Set Up your VR development environment 1. According to the VR device you are using and you're expected to develop the VR framework, install the corresponding package and plugin. As our example, we first open the **Package Manager**, and then click **Advanced button**, select **Show preview packages** 2. Search XR Interaction Toolkit and then install it 3. Go to **Edit -> Project Setting -> XR Plug-in Management -> install XR Plug-in Management** 4. Select the corresponding **Plug-in Providers** which match your VR device. In our example, we select **Oculus**, and then it will automatically install Oculus XR Plugin ### Step 2 - Set Up the VR controller (or laser pointer) that can interact with the UI component in the scene 5. For how to make the VR controller (or laser pointer), pls check out this ReadMe session: **The Details of the Demo - Building the laser pointer** ### Step 3 - Download and import VFSKeyboard packages ***The part that our components are responsible for*** 6. Download and import **"VFSKeyboard"** 7. Add two "**InputField**" gameObject in the scene and then add the "**InputFieldDetection**" script at those gameObject. This script is mainly responsible for sending the signal that opens the "Virtual Keyboard" when the laser pointer click the InputField gameObject ![](https://i.imgur.com/6WgLvyd.png) 8. Add the **"Virtual Keyboard Controller"** prefab in the scene. This gamObject mainly control the "Virtual Keyboard" open or not ![](https://i.imgur.com/Uh74bcK.png) 9. Drag the "**Virtual Keyboard**" prefab to the **Canvas** UI gameObject, become the childObject of the **Canvas** UI gameObject ![](https://i.imgur.com/U8Q4e1C.png) 10. Fine-tuning the UI component to a suitable position, and now you can play it now :) ### Step 4 - Fine-tuning the VFSKeyboard setting(Optional) Ther have some setting that let you modify such customize the keyboard button color when the user release, select, and press and the automatically closing time of the Virtual Keyboard 11. You can set the automatically closing time of the Virtual Keyboard of what you want. This setting is in the gameObject path, "Virtual Keyboard/Background" ![](https://i.imgur.com/TuV9Sa5.png) 13. For color setting of the Virtual Keyboard button, you can select the gameObject that path is "Virtual Keyboard/Background/{row1, row2, row3...}/{A, B, C, D, E...}", then modify the "GetKeyCode" script parameter {mNormalColor, mHoverColor, mDownColor} ![](https://i.imgur.com/q1hhvDr.png) ### KNOW ISSUE / IMPROVEMENT - Can’t get the cursor (or laser pointer) position (in characters) within a text InputField if the project using Oculus Integration and XR Interaction Toolkit to develop - Add more punctuation key to the keyboard in the future ## Demo - Try it out! Demo builds from the different framework and using the Oculus Quest 2 for testing are available here 0. The Unity Project File - [Download link](https://drive.google.com/drive/folders/1uwvCfkKxcsQLHnR7yxN_agglMzws_VGH?usp=sharing) 1. Building by Oculus Integration: - [Running on Windows Platform(.exe) and using Oculus Link to play](https://drive.google.com/file/d/1qNCtgYQCs5Hp4kmA-vJRxou2Seip9uR7/view?usp=sharing) - [Running on Oculus(.apk)](https://drive.google.com/file/d/1TC3xcVgx_XekGe3--sP2T2XJVGaFGCN6/view?usp=sharing) 2. Building by SteamVR Plugin: - [Running on Windows Platform(.exe) and using Oculus Link to play](https://drive.google.com/file/d/1514QedY8KkCONoppiGpdPEpUtvpRq8m8/view?usp=sharing) 3. Building by Unity XR Interaction Toolkit - [Running on Windows Platform(.exe) and using Oculus Link to play](https://drive.google.com/file/d/1BcC3yIbShIFdgT4LKN52LiDIWnmS_Fiy/view?usp=sharing) - [Running on Oculus(.apk)](https://drive.google.com/file/d/1u5RlT1aHP_sHOmgy2BXEB8WEcZV9K8H1/view?usp=sharing) 4. General input(Physical Mouse) **(Not VR Development)** - [Running on Windows Platform(.exe)](https://drive.google.com/file/d/1cuLwexPr7ex6HyXI2xx0yibXqXS_9C4z/view?usp=sharing) ||Building by Oculus Integration | Building by SteamVR Plugin | Building by XR Interaction Toolkit |General input (by Physical Mouse)| | ------------------ | ------------------ | -------------- | ---------------------- |----------------------| | Running on Windows | V | V | V |V| | Running on Android(Oculus) | V | | V || | Having a know issue | V | | V || | Version | 29.0 | v2.7.3 (sdk 1.14.15) | 0.10.0-preview.7 |N/A| | *Press the keyboard key by | 1 or 2 | 3 | 3 |Physical Mouse| ***In the Demo, we set some button events on Oculus Controller to trigger the event when the button is down such as press the keyboard key** ![](https://i.imgur.com/pbWRrK3.png) ## The Details of the Demo - Building the laser pointer The above Demo follows the following tutorial to set the laser pointer that can interact with the UI component in the scene and then add VFSKeyboard to interact InputField and Virtual Keyboard components 1. Making the laser pointer with **Oculus Integration** https://www.youtube.com/watch?v=8fT478uopco 2. Making the laser pointer with **SteamVR Plugin**: (I). https://www.youtube.com/watch?v=3mRI1hu9Y3w&t=314s (II). https://www.youtube.com/watch?v=h_BMXDWv10I (III). https://www.youtube.com/watch?v=vNqHRD4sqPc&t=881s 3. Making the laser pointer with **Unity XR Interaction Toolkit** https://www.youtube.com/watch?v=BZt74PVb7sM ## Update History - v1.0 Jun 22, 2021: First release ## LICENSE MIT License Create by Wong, Shing Ming Email: shingming.cs@icloud.com Web: https://shingming-cs.myportfolio.com/

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully