f-strieg / MyoUnityAndroidPlugin

Unofficial Plugin which enables you to build Unity applications for Android with Myo support
MIT License
8 stars 4 forks source link

Demo Scene not working #1

Open ThermoNuclearPanda opened 8 years ago

ThermoNuclearPanda commented 8 years ago

When the demo scene is opened, there is a missing/broken prefab. Furthermore, when the default prefab (MyoManager) is imported, the associated script is missing. We are able to compile an APK, and load it on to an android device. However we are unable to attach the myo armband to the scene, as the attached variable still says false. We are able to send vibration commands unreliably to the myo, but unable to receive neither pose data nor orientation. Can you please recommit the project with a working demo scene and prefab?

thanks

Batonikos commented 8 years ago

Hello @ThermoNuclearPanda I had the same problem but found the solution. Delete the broken prefab , make a new GameObject (named it "_Main") and insert to it the script "MyoPluginDemo" found at Assets->MyoPlugin->Demo->Scripts. After that go at the inspector of the _Main and add the object to rotate. Hope this helps.

4rzael commented 8 years ago

Even with this change, I still cannot attach to a Myo, even though I can make it vibrate. What do you mean by "'bump' Myo gently to your device" ?

Also, there is a missing script on the main camera.

Batonikos commented 8 years ago

Hey @4rzael By telling bump Myo gently to device means just touch them together after you have pressed the key to attach to adjacent. Anyway I found the solution to your problem. So do as I have advised above. So now you should have in your scene , the MainCamera , Cube , Directional Light and the _Main. Now go to Assets->MyoPlugin->Prefabs and add to your scene the MyoManager. After you have added it go to Assets->MyoPlugin->Scripts and add the MyoManager script to the MyoManager in your scene. Also do not forget at the player settings to put Minimum API to lvl 18 if I remember correctly. This should work. If you are still having problems sent a message and I will try and help

4rzael commented 8 years ago

@Batonikos It takes some time to sync, but yeah, it works ! Thanks !

Batonikos commented 8 years ago

@4rzael For the time being is the best solution I have also. I will try and see what can be done with connecting it normally and not via "attachToAdjacent" but cannot make any promises since it is not a 1st priority for me right now. Glad I could help.