Import SDK

Follow

SDK import

Import the required packages into an existing Unity project.

  1. Import “nodesk_beta_1_0.unitypackage” into the Unity project.
  2. (For Oculus Go / Oculus Quest only) Import Unity Asset “Bluetooth LE for iOS, tvOS and Android”. The Example directory and the Documentation directory are unnecessary, so do not import them.
  3. Add Nodesk / Prefabs / Resources / NodeskPrefabs to the scene.
  4. (If TextMeshPro is not installed) A dialog to import TextMeshPro will open. Select Import.

SDK settings

Guide position adjustment

The default setting is to follow the field of view.

To turn off tracking, disable BodyLocked attached to NodeskPrefabs. Change the position and rotation of NodeskPrefabs to adjust the position.

Please refer to the following site for details of BodyLocked.

http://tips.hecomi.com/entry/2017/04/01/171121

Guide size adjustment

Change the size of the Guide displayed on the screen by adjusting the Scale of NodeskPrefabs

Set the same value for X, Y, and Z.

Changing the input device

Change the InputDevices of NodeskSettigs attached to NodeskPrefabs. The possible values are as follows.

Selected value Explanation Supported platforms
Bluetoothle Input using a smartphone app (Android / iOS).
  • Windows
  • Mac
  • Hololens
  • Oculus Quest/Go
Joystick Input using a joystick. For debugging.
  • Unity Editor
  • Windows
  • Mac
  • Hololens
Quest Input using a smartphone app (Android / iOS).
  • Oculus Quest

Mosue

(not recommended)

Input using Mouse. For debugging.
  • Windows

Touchpad

(not recommended)

Input using Mac touchpad. For debugging.
  • Mac

 

Bluetooth LE

Please refer to the following to install the app on your smartphone.
Install iOS app
Install Android app

JoyStick

Add the following to Unity's Input settings according to your JoyStick.

Name Explanation
Joystick_Horizonal1 The X axis of the stick used for Drag operation.
Joystick_Vertical1 Y axis of the stick used for drag operation.
Joystick_Horizonal2 X axis of the stick used for Flick operation.
Joystick_Vertical2 Y axis of the stick used for Flick operation.
Joystick_L_Press Button used to determine Drag operation (unused).
Joystick_R_Press This button is used to determine the Flick operation. Used to select the middle key for Flick operation.

 Quest

The following settings must be added to AndroidManifest.xml to accept input from Quest Touch controllers.


<uses-feature android:name="android.hardware.vr.headtracking" android:required="true" android:version="1"/>
                                            

The operation method is Drag operation with the left controller stick, Flick operation with the right controller stick, and middle key selection by pushing the right controller stick.

Changing the input method

You can set whether to use the conversion area. When using, press the E button in the center of the lower panel while characters are entered in the conversion area, and the entered characters are confirmed and notified to KeyEventHandler.
If not used, KeyEventHandler is notified immediately after typing.

Receive character input and command events

Create an event handler that receives input characters and various events, and register it in NodeskPrefabs.

    1. Create any class that inherits NodeskKeyEventHandler.
    2. Implement TypeText method.
Signature public virtual void TypeText(string text)
Return value none
Argument
  • text:String
    • Characters typed on Nodesk are stored.
    1. Implement TypeCommand method.
Signature public virtual void TypeCommand(TypingCommand command, float value)
Return value なし
Argument
  • command:TypingCommand
    • Stores the type of event that occurred on Nodesk.
  • value:float
    • Amount data associated with the event is stored. * Currently unused.
  1. Attach the created class to any object.
  2. Attach the attached object to the NodeEventPrefabs KeyEventHandlers property.
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.