You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JoshSnider edited this page Apr 19, 2018
·
6 revisions
This article explains how to use the plugin to create an interactive game project. An interactive game enables viewers to directly control the environment in and around streamers' broadcasts by interacting with the UI controls displayed.
Open the Mixer menu and select Interactive Studio.
Create a new project and name it "HelloWorld". Then click Save.
Click the Build tab at the top of the Interactive Studio Editor as shown in the screenshot below:
Add a new control. Make sure the control type is set to button (this is the default). Name the button "GiveHealth". This is the string is referenced in the game code.
Update your CLIENT_ID and INTERACTIVE_ID in InteractiveSample.cpp. You can obtain your CLIENT_IDhere and your INTERACTIVE_ID on the CODE tab of your interactive project here.
Run the project. It will launch a command window that will give you provide output of the input provided from your channel.
Adding to Your Game
Copy the source directory into your C++ game project (you will likely want to rename it). Add interactivity.cpp to your compilation list and include interactivity.h to get started.
Connecting to interactive
See the Connecting to Interactive page for details on how you can use the C++ API to create an interactive session.