🧑‍🤝‍🧑
The Ultimate Playmaker Multiplayer Template
  • Welcome to the Documentation for The Ultimate Playmaker Multiplayer Template
  • 🟦2D
    • 2D Quick Start
    • 2D Deep Dive
  • 🧊3D
    • 3D Quick Start
    • 3D Deep Dive
  • 🥽VR
    • VR Quick Start
    • VR Deep Dive
  • Other Templates and Demo Scenes
    • 2D with Voice Chat and Indicator
    • Room List Demo
    • Chat Room Demo
  • 🐛Bugs & Feature Request
    • Bugs
    • Feature Request
Powered by GitBook
On this page
  • Install the required Dependencies First:
  • Install The Ultimate Playmaker Multiplayer Template Package
  • Add The Proper Sorting Layers
  • Create your Photon App ID
  • Put your App ID into your Unity Photon Server Settings
  • Play the Demo Scene
  1. 2D

2D Quick Start

Follow these steps to get started with your 2D project.

PreviousWelcome to the Documentation for The Ultimate Playmaker Multiplayer TemplateNext2D Deep Dive

Last updated 3 years ago

Make sure you've installed all the dependencies before installing this package

Install the required Dependencies First:

  1. The latest version of Unity 2020 LTS is recommended (i.e. 2020.3.29f1)

  2. Install 'Input System' from Unity's Package Manager (Version 1.3.0 or later)

  3. Once you've installed the Playmaker Ecosystem Package, use it and search PUN 2 and install the PUN 2 package.

  4. If you didn't start with a 2D project, make sure you add '2D Sprite' from the Window>Package Manager>Unity Registry

Install The Ultimate Playmaker Multiplayer Template Package

You can install the whole package if you want to, but if you're only going to be working with 2D, it would be better if you didn't install the assets that are for 3D or VR.

Import The Ultimate Playmaker Multiplayer Template Package, but uncheck the following items.

  1. Resources>CollectiblePrefab.prefab

  2. Resources>ControllerSphere.prefab

  3. PlayerPrefabForMultiplayer.prefab

  4. VR_PlayerPrefabForMultiplayer.prefab

  5. The Whole 'Samples' folder.

  6. Scenes>3D Demo.unity

  7. Scenes>VR Demo.unity

Add The Proper Sorting Layers

  • On the sprite renderer for PlayerPrefabForMultiplayer_2D, create and set the sorting layer to 'Player and Interactable'. Do the same for the child 'Eyes' on the PlayerPrefabForMultiplayer_2D (but the order should be -1).

  • On the sprite renderer for CollectiblePrefab2D, create and set the sorting layer to 'Player and Interactable'.

Create your Photon App ID

  1. Go to https://www.photonengine.com and create an account if you haven't already.

  2. Go to your Dashboard by clicking 'Dashboard' in the top right of the webpage.

  3. From your Dashboard, click the 'Create a New App' button.

  4. Set 'Photon Type' to 'PUN'.

  5. Create a name for your app.

  6. Click 'create' (the rest of the fields on this page are optional.

Put your App ID into your Unity Photon Server Settings

  1. Inside your Unity Project, go to Window>Photon Unity Networking>Highlight Server Settings (or you can use hotkeys CTRL+Shift+ALT+P)

Play the Demo Scene

You should have everything you need now to play the '2D Demo Scene' (search for it in your project tab).

  1. Hit 'Play' in the editor.

  2. Click a button to choose a 'public' or 'private' room.

  3. Use WASD to move and space key to jump.

From your , find the App you created in the previous section. The app ID should be partially displayed under the title of your app. Click on it to view the full ID. Use CTRL+C on your keyboard to copy the app ID.

Paste your App ID (using CTRL+V on your keyboard) into the 'App ID PUN' field. The only other fields you should mess with are the 'App Version' if you want to (but its not necessary), Fixed Region, and Dev region fields. While testing, I like to keep the Fixed Region and Dev regions set to my region, to ensure all my players end up in the same room while testing.

🟦
Photon Engine Dashboard
Find the region codes here.
The latest version of Playmaker (1.9.4.f2)
Install the latest version of PUN 2 FREE from the Unity Asset Store.
Download and Install the Playmaker Ecosystem Package.
Install the TextMeshPro UGUI Playmaker Actions
Install the new input system
6. Once you've installed the Playmaker Ecosystem Package, use it and search PUN 2 and install the PUN 2 package.
When you import the package, uncheck the items so yours looks the same as this image.
Steps 4, 5, and 6.
Copy your app ID.
Be sure your input your PUN App ID
This is what the 2D Demo Scene looks like.