Moverio Controller Function SDK
Developer's Guide for Unity plug-in
This guide will show you how to set up your development environment and try out the Moverio Controller Function UnityPlugin sample.
configuration | value |
---|---|
Player Settings > Other Settings > Package Name |
Create a unique app ID using the Java package name format. For example, com.example.helloMoverio |
Player Settings > Other Settings > Minimum API Level | Android 9.0 'Pie' (API level 28) or higher Android 9.0 |
Be able to control the setting of keys of the Moverio controller, and so on.
Function | Contents |
---|---|
UI mode | controlGet/Set UI mode |
Keycode management | Get/set key code of physical key |
Key enable/disable control | Get/set physical key enable/disable |
Lighted setting of LED enable/disable control | Get/Set lighted setting of controller LED enable/disable |
KeyLock feature enable/disable control | Get/Set KeyLock feature (physical key/display touch) enable/disable |
Reset key state | Reset physical key settings to default |
Recconect | Reconnecting dedicated controller |
The above functions are implemented by UIControl of sample scene
Label | Function |
---|---|
UIMode | UI mode control |
KeyAssign | Keycode control |
KeyEnable | Key enable/disable control |
ControllerLedMode | Lighted setting of LED enable/disable control |
KeyLock | KeyLock feature enable/disable control |
Reset | Reset key state |
Reconnect | Reconnect |
For details of the function, refer to Moverio Controller Function SDK Developer's Guide.
This section describes how to control UI with Unity application.
Create a Unity project and import the package.
Refer to Create a Unity project for how to create.
Drag and drop MoverioUI into the hierarchy window.
Create a script.
Add using.
Open the script created in 3 and describe as using MoverioControllerFunctionUnityPlugin;
using MoverioControllerFunctionUnityPlugin;
Call a function.
Describe the API you want to use like MoverioUI.GetKeyAssign
Refer to the following script for the description method of each function.
Lebel |
Script |
---|---|
UIMode |
GetUIModeController.cs |
KeyAssign |
GetKeyAssignController.cs |
KeyEnable |
GetKeyEnableController.cs |
ControllerLedMode |
GetControllerLedModeController.cs |
KeyLock |
GetKeyLockController.cs |
Reset |
ResetToDefaultController.cs |
Reconnect |
UIReconnectController.cs |
Attach script to GameObject