New: Photon Fusion Starter sample
Unpacking Photon Fusion Starter
Photon Fusion Starter, now available in the Unity Asset Store, is a game-changer for developers looking to integrate robust multiplayer functionality into their projects using the Unity game engine. It includes three entry-level game samples for testing and learning multiplayer game development with Photon Fusion: a Third-Person Character, a Platformer, and a Shooter.
The Fusion Starter sample is meant to get you started with the best foundation for various types of multiplayer gameplay with tick-accurate, lag-compensated (Host mode), rollback, and resimulation loop best practices. It is an all-inclusive asset designed to integrate Photon Fusion, a Unity Verified Solution, as a foundation for your Unity projects.
Fusion Starter provides best practices for developers looking to create high-performance, scalable multiplayer games, complete with detailed examples and comprehensive documentation. This sample can be found in both Fusion Shared and Fusion Host topologies to accommodate both beginners and professionals.
1. Third Person Character Controller
The Third Person Character sample transforms Unity’s Starter Assets – Third Person into a playable multiplayer environment. Players spawn as third-person characters and can walk and run around a prototype environment. This sample replaces the default CharacterController component with the Simple KCC addon, a kinematic character controller (KCC) solution specifically tailored for Fusion. It provides smooth movement and rotation even under challenging networking conditions, optimized to handle dozens or even hundreds of characters on a single CPU server core.
2. Platformer
The Platformer sample uses a similar foundation to Third Person Character Controller and introduces interaction with game objects, such as collecting coins and avoiding falling platforms. It uses RPCs to display nameplates above player heads and features a simple game loop where players race to collect 10 coins and reach the top flag. After each round, all players restart at the starting point.
3. Shooter
The Shooter sample demonstrates a simple first-person shooter where players compete to be the best hunter by shooting flying chickens. The chicken counter resets when a player dies, either by falling off a platform or being killed by another player. Fusion Starter, in Host Mode, utilizes Fusion’s Lag Compensation to ensure precise hits even under poor networking conditions.