"UWP" apps (for Hololens) are not supported
Creating a Unity app for the Microsoft Hololens requires the "Windows Store" platform, along with the "Universal 10" SDK (UWP). However, the UWP is a subset of the full .Net api -- the UWP api does not support old .Net apis. The Watson Unity SDK uses archaic APIs which generates many build errors when trying to build a Hololens app. For example, the SDK uses the old BeginRead, BeginWrite, etc. apis for async operations instead of the newer .Net async model. Also, the old SerializationInfo class is not supported in UWP.
Please modify the SDK to use apis supported by UWP.
Are you trying to use any particular services? We have a Watson .NET SDK written in .NET Platform Standard partially completed.
I'm starting with SpeechToText, but expect to use others as well. Thanks
Pointed to .NET Standard SDK to try. Closing for now.
I am still running into the same problems as ronjkarr. I wish to use TTS from the Watson SDK, it works flawlessly in editor but I can't compile. I worked my way around build errors from WebsocketSharp by compiling it into a DLL and using that instead of the loose files.
Sadly I wasn't able to do the same for the entire Watson Unity SDK. How to fix building for UWP/HoloLens?
Hi @FricoRico, Because of different .NET versions, the Watson Unity SDK does not support .NET development. We are developing a .NET Standard SDK that you should be able to use. It is still in development stage and will move to the Watson Developer Cloud eventually but you can give it a try here:
https://github.com/atilatosta/dotnet-standard-sdk/tree/development
@mediumTaj I'd like to use Visual Recognition in Unity in combination with the HoloLens. Would you suggest waiting for the feature to appear in the new .NET Standard SDK or am I better off writing my own implementation for that API? I only need to subit images and retrieve the results from Watson, nothing more.
@DenzoNL : @eusebiu has a pull request submitted updating some third party plugins and ifdef'ing some AOT code. Can you please try it out? Let me know how it goes!
https://github.com/eusebiu/unity-sdk/tree/WSA_Support
Hi, Can you please update on whether the above pull request worked? Alternatively is there any other way by which I can use IBM Watson in my Windows Store App?
Currently the branch is being refactored. You can follow the progress in the feature-config-refactor branch. This will be a major release and will remove higher level widget functionality. It looks like all of the changes in the wsa branch were updating 3rd party plugins. Can you try this branch out? Additionally, follow the instructions eusebiu wrote in his branch
+In order to build the player for Holographic applications, you have to change the Scripting backend (in File->Build Settings->Player settings) to IL2CPP.
Unfortunately I can no longer test this as I don't have access to the HoloLens any more.
I would more than be happy to try to get my HoloLens up and run tomorrow (Its at work and I'm in Norway timezone) Can I then make a unity 2017 project download the zip file from https://github.com/eusebiu/unity-sdk/tree/WSA_Support, unzip and extract import in unity and rename to Watson and then import the Holotoolkit (just recently being renamed mixed reality toolkit) and try to make a uwp project from this??? Is it other considerations I should take. Been fiddling with Watson into HoloLens for some time now without huge success I'm afraid. Would be great to finally get the thing to work .
Thank you @HaraldHeide . Can you also try the hololens with the feature-config-refactor branch on this repo as well?
DUe to other things at work i had to postpone until newxtweek with further testing I'm afraid sorry
What has happened with .NET support for Watson Unity sdk since the last post? I am having issues with building projects with hololens toolkit without using .NET scripting backend.
@jsmith09 There is a PR open for this. I'm still trying to find some time this week to review it. Can you pull this version down and try it out? Please let me know what you think.
Do you have instructions to make a unity package of this version?
@jsmith09 You should be able to download the repository and add it to your Assets directory in your project.
@mediumTaj I tried to build it with .NET and got these build errors.
@jsmith09 Can you please @kimberlysiva 's fork? She has a PR submitted but I haven't had a chance to try it out yet.
https://github.com/watson-developer-cloud/unity-sdk/pull/256
@jsmith09 It looks like you have the Unity Speech-To-Text sample in the project? That's where those errors are coming from. Their sample probably isn't going to compile for Hololens.
https://bitbucket.org/Unity-Technologies/speech-to-text