WinRT in Unity

WinRT in Unity

Rating
3.4
Reviews
5
Main interface, done with Unity UI (no XAML controls).
Using a UWP dialog, called from the Unity app.
Using the UWP Speech API from the Unity Interface to recognize user commands. The recognized text is shown in a Unity control.
About screen, which is done with another scene in Unity. Changing scenes does not break the Unity-UWP connection.

App details

Release date

2017-03-16

Last update

2019-01-29

Product ID

9MXZLR596Z4P

Categories

Developer tools

About WinRT in Unity

This a demo app for the Unity asset “Use WinRT / UWP API in Windows Store Apps”, which you can find in the Unity Asset Store. The demo shows how you can interact with XAML controls and use WinRT APIs such Speech from a Unity app.
You can invoke WinRT API from Unity when you target Windows Store apps, but because most of those API use modern features of C# not supported by the Mono version used by Unity (like async calls) you cannot really use them. You also cannot use XAML controls easily.
This asset contains scripts for Unity and a package for your Windows Store Application project that stablish a connection between your unity scripts and your WSA classes, so you can use it to call UWP APIS and use XAML controls that you define with Visual Studio from and back to Unity.
This demo also demonstrate that the connection is not broken when you load another scene.

Key features

  • Speech recognition
  • Speech synthesis
  • XAML interaction
  • All from an Unity app