Hello,
I’m trying to get my app to react to Cortana in Windows 10
there’s not much information around on this subject yet
I’ve found a blog by Kevin Ashley that describes how to implement Cortana with unity, yet it’s not explaining most things for when i want to customize the features.
It covered how to activate commands with cortana when in-game.
but what if i want to fire-up the game with an argument from cortana?
is it possible to handle this event somehow and pass an argument to unity to i’ll do certain things depending on what was spoken?
Check the App.xaml.cs. There are several methods that can be called when application is launched, some have arguments. Making those available in Unity scripts is quite easy, as you can access classes from Unity scripts directly in there.
Script classes are visible in App.xaml.cs. So, any static variables/methods can be accessed regardless if Unity already works. You can check our examples, XAMLUnityConnection does such type of communication. http://docs.unity3d.com/Manual/windowsstore-examples.html