PUN Classic (v1)、PUN 2 和 Bolt 處於維護模式。 PUN 2 將支援 Unity 2019 至 2022,但不會添加新功能。 當然,您所有的 PUN & Bolt 專案可以用已知性能繼續運行使用。 對於任何即將開始或新的專案:請切換到 Photon Fusion 或 Quantum。

Bolt 101 - Wizard Window

Welcome to the Getting Started of Bolt. Here we will go through the first steps to get your project up and running Bolt in no time. Please download/import the package.

After the import is completed, you will be greeted by the Bolt Wizard window, as shown below. This first screen is just a warm welcome from the Bolt Team, explaining that we will go through some steps to get Bolt properly configured. If the Wizard window did not show up, please go to Bolt/Wizard.

bolt wizard window
Bolt Wizard window.

In the next step, we need to configure your Photon Cloud credentials in order to connect with Photon Servers and use Bolt properly. First, you will need a valid Application ID (AppID), that can created using our Dashboard page. Just fill all fields with your desired configuration, and you should be good to continue:

  1. Shortcut to Dashboard page;
  2. The field for your Application ID;
  3. Select your desired Region;
  4. Select if you want the NAT punchthrough behavior enabled.
bolt wizard - photon cloud settings
Bolt Wizard - Photon Cloud settings.

One really important aspect that you need to consider is the Region that your game will be using. By default, Bolt is configured to connect to the Best Region, so when you run your Game Server, it will connect to the nearest region of where it is deployed, this can be a local machine or a cloud computer. This behavior is expected as it grants as lower delay as possible among the peers, but this also determines where your game session will be published. If your game session is published on a certain region A, and your player connects to region B, it will never receive any information about the running game. So, for testing purposes, you can choose a Region directly on the Wizard window or later, you can go to the Bolt Settings window (Bolt/Settings menu), and choose a fixed region on the Photon Services section at the Region field. You can choose any arbitrary region (read more about the Photon Regions here) but we suggest to be one near the region you server will be running. This way, both your game server and your player will connect to the same region, making sure they can connect properly.

Next, we will install all necessary packages to make your installation ready to use. Bolt comes with some example packages, so you can headstart without writing any code. The packages are:

  1. Core: main Bolt package, this is the only required bundle to run the library. On the latest version, this package is already imported by default.
  2. Samples:: contain examples with different scenarios showing some features of Bolt;
bolt wizard - packages
Bolt Wizard - Packages.

Great! Now you are ready to use Bolt on all its functionalities. Welcome to the family! On the latest step, you will find links to our Community, Bug Tracker, and this documentation.

bolt wizard - support
Bolt Wizard - Support.

In the next chapter, we will start using Bolt and create a simple networked game.

Next Chapter >>

Back to top