Awesome
Web Socket Unity demos
Azure Web Socket services for Unity
- Bing Speech web socket demo (requires Key)
- Bing Speech and LUIS app for using natural language to target and control Unity GameObject properties.
- Bot Framework Direct Line web socket demo (requires Direct Line key)
Localhost Web Socket samples for Unity
- Echo message demo
- Transform JSON demo
:octocat: Download instructions
This project contains git submodule dependencies so use:
git clone --recursive https://github.com/Unity3dAzure/UnityWebSocketDemo.git
Or if you've already done a git clone then use:
git submodule update --init --recursive
Setup instructions
How to run the Bing Speech and LUIS Unity demo
-
Create Bing Speech service in Azure and get a key for the Unity BingSpeechService script.
-
Select 'Import new app' and import the sample UnityLUISApp.json file.
-
Under 'Publish > Resources and Keys' section select 'Add Key'
-
Copy the key's Endpoint ending in 'q=' into the Unity LUISApp script.
How to run the Bot Framework demo
-
Create an Azure Bot Service.
-
In the Azure Bot Service select Channels and add a Direct Line channel.
-
Copy the Direct Line secret key into the Unity BotService script.
How to run the localhost Web Socket echo demo
- Clone the Web Socket server repo and run the echo server.
node ./server-echo.js
- Open Unity project's Echo Demo scene in Unity and hit play!
How to run the localhost Web Socket 3d transform JSON demo
- Clone the Web Socket server repo and run the json server.
node ./server-json.js
- Open Unity project's My Transform Demo scene in Unity and hit play!
Dependencies
Refer to the download instructions above to install these submodules.
Questions or tweet #Azure #GameDev @deadlyfingers