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. On February 28th the Feedback website will shut down and be redirected to the Unity forums. See the full post for more information.
    Dismiss Notice
  5. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  6. Unity 2018.3 is now released.
    Dismiss Notice
  7. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

Photon PUN - GameAdmin Client

Discussion in 'Connected Games' started by RaikuKawisa, Dec 7, 2018.

  1. RaikuKawisa

    RaikuKawisa

    Joined:
    Feb 27, 2017
    Posts:
    5
    The current project I'm working on requires a second type of game client to be able to connect to the networked room. So I will have the basic player clients who will actually be playing the game, and I need a second client to be able to connect to the game who does not play but is able to change settings and receive feedback and I am not sure how to implement a second client like that.
     
  2. tobiass

    tobiass

    Joined:
    Apr 7, 2009
    Posts:
    2,102
    You can implement it just like other clients but implement more "abilities".
    In the default implementation of Photon, there is no concept of "admins" or "moderators". More to the point: There is no concept of roles at all, so every player technically has the same rights. That also means: Once a room is full of players, the room is simply full and no matter the client, there is no spot for a moderator to join.
    Well, you might be able to have all rooms set an "expected player". In that case, a "moderator" is basically added to the room from the start and a user with the UserID "moderator" would be able to join the room.
    Make sure to at least implement Custom Authentication in this case, or else any client may be hacked into connecting as "moderator" (or whatever userId you chose)...