Search Unity

  1. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Let us know a bit about your interests, and if you'd like to become more directly involved. Take our survey!
    Dismiss Notice
  4. Don't miss out on the Unite LA Keynote for the latest information from Unity! Set a reminder!
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  6. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

What is Photon Offline Mode?

Discussion in 'Connected Games' started by ChoicePath2, Oct 9, 2018.

  1. ChoicePath2

    ChoicePath2

    Joined:
    Oct 6, 2018
    Posts:
    2
    Hello!

    The documentation of Photon says that offline mode is a feature that allows you to re-use your multiplayer code into single player game mode as well.

    So what does this mean? Does it mean that multiplayer mode can change into singleplayer mode , or the multiplayer game mode has single player game functions when the player plays offline?

    Please explain what offline mode is.

    Thank you!
     
  2. Munchy2007

    Munchy2007

    Joined:
    Jun 16, 2013
    Posts:
    904
    It's a flag you can set which enables you to play without going online but still use 99% of the same code that you would if you were playing it networked.

    Basically, it saves you a lot of time if you want to implement a single player mode for your networked game or if you want your game to be playable without an available internet connection.
     
  3. tobiass

    tobiass

    Joined:
    Apr 7, 2009
    Posts:
    2,025
    The offline mode allows you to use the same (or very similar) workflow to "join" a game and arrive in a "room", no matter if you're online or offline.
    As @Munchy2007 says, it may be a time saver when you want to support multiplayer and singleplayer in one game. You just enable offline mode and you can use the same workflow to "create a room" and play (with 0 other players).

    Here's a doc for more details:
    https://doc.photonengine.com/en-us/pun/current/gameplay/offlinemode