This folder contains a set of samples built on top of Bolt, that can be downloaded directly from the repository at https://github.com/BoltEngine/Bolt-Sample, where you can find the latest version of them or it can come inside the Bolt Free SDK from Asset Store (https://assetstore.unity.com/packages/tools/network/photon-bolt-free-127156).
This repository will contain a series of samples made using Photon Bolt. They are intended to help understand how Bolt works and use it properly. This repository is not restricted to ExitGame developers and should be used by the community to learn, improve and share their own results using Bolt.
This repository contains samples that highlight the most important Bolt features. The following samples are included:
Sample | Description | Documentation | Source |
---|---|---|---|
Getting Started | Overview on Bolt and its capabilities | link | link |
Advanced Tutorial | More complex example using Bolt | link | link |
PhotonCloud | How to init Bolt to work on top of Photon Cloud or custom hosted Photon servers | --- | link |
ClickToMove | A simple, server-authoritative example for moving a character by clicking on terrain | --- | link |
ThirdPersonCharacter | Multiplayer versions of the Unity TPC demo, both with and without server authoritative movement | --- | link |
HeadlessServer | A simple example of how to run Bolt in headless mode for server purpose | link | link |
ServerMonitor | Monitor a Bolt server using a standalone client. | --- | link |
Zeuz | A simple example of dedicated Bolt server hosted by zeuz. Requires AdvancedTutorial. | WIP | link |
- Create a new Unity project;
- Download Photon Bolt Free from Asset Store;
- Follow the instructions on the Wizard Window. If it did not show up, run it from
Window/Bolt/Wizard
; - Download this repository and place it inside your Unity Project. Download link;
- Replace the Bolt Assets files:
data/bolt.user.dll.backup
->Assets/Photon/PhotonBolt/assemblies/bolt.user.dll
;data/project.bytes.backup
->Assets/Photon/PhotonBolt/project.bytes
- Compile Bolt:
Assets/Bolt/Compile Assembly
.
Any of the gameplay scenes from the included samples can be directly tested from Bolt's Scenes window (found on Window/Bolt/Scenes
by following the instructions below:
- Make sure the scene is added to Unity's
Build Settings
.- If you skip this, Bolt's Scene window won't show any scene.
- Edit the
Player Settings
to make sureRun in Background
is enabled!- The demos must be able to run in background. If you can't control the clients, or don't see coordinated movement,
Run in Background
is probably not set.
- The demos must be able to run in background. If you can't control the clients, or don't see coordinated movement,
- Open
Window/Bolt/Scenes
and clickDebug Start
to start any of the samples.- This will build and run the demo in Editor and (at least) 1 client.