Game Dev Quick Tip - Open Steam Client App Directly from your game

We recently found a cool thing when working on our upcoming game Kick Bot. We wanted an easy way to get people to go from our game demo to wishlist Kick Bot on Steam.

Most game engines have a way to open a link in the player's browser but this tip goes one step further and opens the Steam page for your game in the player's Steam client app on their computer directly.

To do this you need a special URL: "steam://store/" + your game's AppID

There are two methods to get your game's AppID on Steam.

Through the steam client you can go to your game's page and click this link using the middle mouse button (usually clicking down the scroll wheel) This will open the game's page in a new window with a URL bar at the top. Your game's AppID is will be in the URL bar at the top.

The other method is from your web browser, navigate to your game and the AppID will be in the URL bar.

Depending on your game engine you will open URLs in different ways, I will go over how we did it in Unity.

Opening a URL in Unity

The main bit of code you need is Application.OpenURL()

Application.OpenURL("steam://store/1136290/");

This is completely optional but to make this script more versatile we created a function called "GoToURL" where you can specify any URL you want as a string. This makes it easy to use in Unity Events and more.

using UnityEngine;

public class OpenURL : MonoBehaviour {

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

I hope this is helpful, thanks for watching and be sure to wishlist Kick Bot on Steam and join our Discord to try the free demo today!

You can try the free Kick Bot demo for yourself by joining our Discord: http://discord.gg/twoscoopgames

Thanks again, and be sure to tell your friends about the our game Kick Bot!

If you want to help us out:

Wishlist Kick Bot on Steam here: http://wishlist.kickbotgame.com

Become a patron on Patreon and get all the latest development updates first: https://www.patreon.com/twoscoopgames

More info about the game: http://kickbotgame.com