Search Unity

  1. Unity 2018.3 is now released.
    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. Want more efficiency in your development work? Sign up to receive weekly tech and creative know-how from Unity experts.
    Dismiss Notice
  4. Build games and experiences that can load instantly and without install. Explore the Project Tiny Preview today!
    Dismiss Notice
  5. Nominations have been announced for this years Unity Awards. Celebrate the wonderful projects made by your peers this year and get voting! Vote here!
    Dismiss Notice
  6. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    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,068
    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)...