Improving the mixer interactivity authentication experience on PC

Improving the mixer interactivity authentication experience on PC - Mega Cat Studios, Inc.

We recently finished our second game with Mixer integration and wanted to share what might be a helpful resource for other devs in the future. It's short and sweet!


For the PC platform, users who want to enable Mixer interactivity in your game must first authenticate through a short key. This entails providing the user with a key, them visiting a website, and then entering the key. By default, the Mixer Interactivity for Unity plugin makes this process very time-consuming by simply showing the key and the URL to the user, without any accessibility shortcuts to speed the process up.

Our solution:
1. Put the authentication key in a box that will copy the key to the clipboard when selected or clicked.
2. Put the URL to mixer's authentication page into a button that, when selected or clicked, will open the URL in the user's default browser.

Copying to the clipboard is a platform-dependent operation. Thankfully, Unity's TextEditor feature provides that easily. Here's some sample code which will copy a string to the user's clipboard:

public void CopyToClipboard(string str)
{
TextEditor editor = new TextEditor
{
text = str
};
editor.SelectAll();
editor.Copy();
}

Opening a URL is also simple:

public void OpenURL(string url)
{
Application.OpenURL(url);
}

In summary, just have the user click/select the key to copy it to the clipboard (don't do so automatically - you don't want to forcefully overwrite the user's clipboard), and then select the link to the authentication page. This makes the process of enabling interactivity very smooth for the user, giving them a good first impression of Mixer Interactivity.

ブログに戻る

FEATURED BLOGS

Mega Cat Gaming News: Beyond the Controller

Mega Cat Gaming News: Beyond the Controller

Jul 17, 2026
by
Write Meow
View Details
The Mega Cat-alogue: 5 New Steam Games to Play (July Week 3)

The Mega Cat-alogue: 5 New Steam Games to Play (July Week 3)

No passport? No problem. This week's Mega Cat-alogue takes you from the streets of Prague to cozy mysterious islands and colorful hidden worlds with five new Steam releases worth exploring.

Jul 15, 2026
by
Write Meow
View Details
Mega Cat Gaming News: Why Games Feel “Just Right”

Mega Cat Gaming News: Why Games Feel “Just Right”

Jul 13, 2026
by
Write Meow
View Details