Search Unity

  1. Unity 2019.1 is now released.
    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:
    7
    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:
    1,147
    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,163
    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