Skip to content
This repository has been archived by the owner on Jul 16, 2020. It is now read-only.

Getting Started

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.

  • Drop the button on the grid.
  • Click Save.

Adding the SDK to Your Project

Clone the interactive-cpp repository.

$ git clone https://github.com/mixer/interactive-cpp.git interactive-cpp

Running the Sample

Open the InteractiveSample solution.

Update your CLIENT_ID and INTERACTIVE_ID in InteractiveSample.cpp. You can obtain your CLIENT_ID here 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.