Search Unity

  1. Unity 2019.1 beta is now available.
    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. We're looking for insight from anyone who has experience with game testing to help us better Unity. Take our survey here. If chosen to participate you'll be entered into a sweepstake to win an Amazon gift card.
    Dismiss Notice
  4. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  5. Unity 2018.3 is now released.
    Dismiss Notice
  6. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    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,038
    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,097
    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