{"id":515,"date":"2017-10-03T09:44:24","date_gmt":"2017-10-03T00:44:24","guid":{"rendered":"http:\/\/uniblo.biz\/?p=515"},"modified":"2017-10-05T02:05:33","modified_gmt":"2017-10-04T17:05:33","slug":"lobby_and_room","status":"publish","type":"post","link":"http:\/\/uniblo.biz\/unity\/lobby_and_room","title":{"rendered":"Unity\u30aa\u30f3\u30e9\u30a4\u30f3\u30b2\u30fc\u30e0\u4f5c\u6210 \u30ed\u30d3\u30fc\u3068\u30eb\u30fc\u30e0\u306b\u3064\u3044\u3066"},"content":{"rendered":"

\u4eca\u56de\u306fPhoton\u306e\u30ed\u30d3\u30fc\u3068\u30eb\u30fc\u30e0<\/strong>\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n

\u306a\u3093\u3068\u306a\u304f\u8a00\u8449\u304b\u3089\u60f3\u50cf\u306f\u3064\u304f\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u4f8b\u3048\u3070\u30db\u30c6\u30eb\u3067\u5bbf\u6cca\u3059\u308b\u3068\u304d\u306e\u624b\u9806<\/strong>\u3092\u601d\u3044\u6d6e\u304b\u3079\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n

    \n
  1. \u30db\u30c6\u30eb\u306e\u5165\u308a\u53e3\u304b\u3089\u5165\u308b<\/strong><\/li>\n
  2. \u30ed\u30d3\u30fc\u306e\u53d7\u4ed8\u306b\u884c\u3063\u3066\u90e8\u5c4b\u3092\u9078\u3076<\/strong><\/li>\n
  3. \u90e8\u5c4b\u306b\u5165\u308b<\/strong><\/li>\n<\/ol>\n

    \u3068\u3044\u3046\u624b\u9806\u306b\u306a\u308b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u540c\u69d8\u306bPhoton\u3067\u4f5c\u6210\u3059\u308b\u30aa\u30f3\u30e9\u30a4\u30f3\u30b2\u30fc\u30e0\u3067\u3082<\/p>\n

      \n
    1. Photon\u306b\u63a5\u7d9a\u3059\u308b<\/strong><\/li>\n
    2. \u30ed\u30d3\u30fc\u306b\u5165\u3063\u3066\u30eb\u30fc\u30e0\u4e00\u89a7\u304b\u3089\u30eb\u30fc\u30e0\u3092\u9078\u3076<\/strong><\/li>\n
    3. \u30b2\u30fc\u30e0\u30eb\u30fc\u30e0\u306b\u5165\u308b<\/strong><\/li>\n<\/ol>\n

      \u3068\u3044\u3046\u30b2\u30fc\u30e0\u30b7\u30b9\u30c6\u30e0\u306e\u69cb\u6210\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n

      \u30ed\u30d3\u30fc<\/h2>\n

      Photon\u306eSettings\u306eAuto-Join Lobby<\/strong>\u3092true<\/strong><\/span>\u306b\u3057\u3066\u3044\u308b\u3068Photon\u306b\u63a5\u7d9a\u5f8c\u3001\u81ea\u52d5\u7684\u306b\u30ed\u30d3\u30fc\u306b\u79fb\u52d5\u3057\u307e\u3059\u3002<\/p>\n

      \u30d7\u30ec\u30a4\u30e4\u30fc\u306f\u30ed\u30d3\u30fc\u3067\u30eb\u30fc\u30e0\u306e\u4e00\u89a7\u3092\u53c2\u7167\u3057\u3001\u30eb\u30fc\u30e0\u3092\u4f5c\u6210\u3057\u305f\u308a\u3001\u65e2\u5b58\u306e\u30eb\u30fc\u30e0\u306b\u5165\u5ba4\u3057\u305f\u308a\u3059\u308b\u3053\u3068<\/strong><\/span>\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n

      \u30eb\u30fc\u30e0\u6570\u304c\u81a8\u5927\u3068\u306a\u3063\u3066\u3057\u307e\u3044\u3001\u30eb\u30fc\u30e0\u306e\u691c\u7d22\u304c\u5927\u5909\u306b\u306a\u308b\u5834\u5408\u306f\u30ed\u30d3\u30fc\u3092\u8907\u6570\u4f5c\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n

      \u30eb\u30fc\u30e0\u3068\u306f<\/h2>\n

      \u30eb\u30fc\u30e0\u306f\u30d7\u30ec\u30a4\u30e4\u30fc\u540c\u58eb\u304c\u5171\u306b\u30b2\u30fc\u30e0\u3092\u30d7\u30ec\u30a4\u3059\u308b\u5834<\/strong><\/span>\u3067\u3059\u3002<\/p>\n

      \u30eb\u30fc\u30e0\u5185\u3067\u306e\u307f\u4ed6\u306e\u30d7\u30ec\u30a4\u30e4\u30fc\u3068\u901a\u4fe1\u3057\u3001\u7a7a\u9593\u3092\u5171\u6709\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n

      \u30eb\u30fc\u30e0\u8a2d\u5b9a<\/h3>\n

      \u30eb\u30fc\u30e0\u306b\u306fRoomOptions<\/strong>\u3068\u3044\u3046\u4f5c\u6210\u6642\u307e\u305f\u306f\u4f5c\u6210\u5f8c\u306b\u8a2d\u5b9a\u3067\u304d\u308b\u30eb\u30fc\u30e0\u306e\u6027\u8cea\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n

      \u4ee5\u4e0b\u306e5\u3064\u304c\u4e3b\u306aRoomOptions\u3067\u8a2d\u5b9a\u53ef\u80fd\u306a\u30eb\u30fc\u30e0\u306e\u6027\u8cea\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n

      bool RoomOptions.IsVisible<\/h4>\n

      \u30eb\u30fc\u30e0\u304c\u30ed\u30d3\u30fc\u3067\u306eGetRoomList()\u3067\u691c\u7d22\u5bfe\u8c61\u3068\u306a\u308b\u304b\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/strong><\/p>\n

      true\u3067\u691c\u7d22\u5bfe\u8c61\u3068\u306a\u308a\u3001false\u3067\u691c\u7d22\u5bfe\u8c61\u304b\u3089\u5916\u308c\u307e\u3059\u3002<\/p>\n

      bool RoomOptions.IsOpen<\/h4>\n

      \u30eb\u30fc\u30e0\u3078\u306e\u5165\u5ba4\u306e\u53ef\u5426\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/strong><\/p>\n

      true\u3067\u5165\u5ba4\u53ef\u3001false\u3067\u5165\u5ba4\u4e0d\u53ef\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n

      byte RoomOptions.MaxPlayers<\/h4>\n

      \u30eb\u30fc\u30e0\u306e\u6700\u5927\u5165\u5ba4\u53ef\u80fd\u30d7\u30ec\u30a4\u30e4\u30fc\u6570\u3092\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002<\/strong><\/p>\n

      int\u578b\u3067\u306f\u306a\u304fbyte\u578b<\/strong><\/span>\u3060\u3068\u3044\u3046\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n

      HashTable RoomOptions.CustomRoomProperties<\/h4>\n

      HashTable\u578b\u306e\u30eb\u30fc\u30e0\u306e\u30ab\u30b9\u30bf\u30e0\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u3059\u3002<\/p>\n

      \u30eb\u30fc\u30e0\u306e\u30ab\u30b9\u30bf\u30e0\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u306f\u7c21\u5358\u306b\u8a00\u3046\u3068\u30eb\u30fc\u30e0\u304c\u6240\u6301\u3067\u304d\u308bHashTable<\/strong>\u3067\u3059\u3002<\/p>\n

      HashTabel\u306f\u3042\u308bObject\u578b\u306e\u30ad\u30fc\u306b\u5bfe\u3057\u3066Object\u578b\u306e\u30c7\u30fc\u30bf\u3092\u683c\u7d0d\u3067\u304d\u308b\u7279\u6b8a\u306a\u914d\u5217\u3067\u3059\u304c\u3001\u30ab\u30b9\u30bf\u30e0\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u306f\u3001\u3042\u308b\u30d7\u30ec\u30a4\u30e4\u30fc\u304c\u8a2d\u5b9a\u3057\u305f\u60c5\u5831\u304c\u540c\u3058\u30eb\u30fc\u30e0\u306b\u63a5\u7d9a\u3057\u3066\u3044\u308b\u30d7\u30ec\u30a4\u30e4\u30fc\u5168\u3066\u306b\u540c\u671f\u3055\u308c\u307e\u3059\u3002<\/p>\n

      string[] RoomOptions.CustomRoomPropertiesForLobby<\/h4>\n

      CustomRoomPropertiesForLobby\u306b\u30eb\u30fc\u30e0\u306e\u30ab\u30b9\u30bf\u30e0\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u30ad\u30fc\u5024\u3092\u8a2d\u5b9a\u3059\u308b\u3068\u3001\u305d\u306e\u30ab\u30b9\u30bf\u30e0\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u5024\u3092\u30ed\u30d3\u30fc\u304b\u3089\u3082\u53c2\u7167\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n

      \u30eb\u30fc\u30e0\u5185\u306e\u60c5\u5831\u3092\u30ed\u30d3\u30fc\u3067\u5f97\u308b\u305f\u3081\u306e\u6570\u5c11\u306a\u3044\u624b\u6bb5<\/strong>\u3067\u3059\u3002<\/p>\n

      MasterClient<\/h3>\n

      Photon\u306e\u30eb\u30fc\u30e0\u306b\u306f\u5fc5\u305aMasterClient\u3068\u547c\u3070\u308c\u308b\u30d7\u30ec\u30a4\u30e4\u30fc<\/strong><\/span>\u304c\u5b58\u5728\u3057\u307e\u3059\u3002<\/p>\n

      \u30eb\u30fc\u30e0\u4f5c\u6210\u6642\u306b\u306f\u30eb\u30fc\u30e0\u4f5c\u6210\u8005\u304cMasterClient\u3068\u306a\u308a\u3001MasterClient\u304c\u30eb\u30fc\u30e0\u304b\u3089\u9000\u51fa\u3059\u308b\u3068\u304d\u306f\u540c\u3058\u30eb\u30fc\u30e0\u306b\u3044\u308b\u6700\u3082PhotonViewID\u306e\u756a\u53f7\u304c\u5c0f\u3055\u3044\u30d7\u30ec\u30a4\u30e4\u30fc\u304c\u6b21\u306eMasterClient\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n

      PUN\u3067\u306f\u30b2\u30fc\u30e0\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u306b\u3001\u540c\u30eb\u30fc\u30e0\u5185\u306e\u30d7\u30ec\u30a4\u30e4\u30fc\u304b\u3089RPC\u3067MasterClient\u3078\u60c5\u5831\u3092\u540c\u671f\u3055\u305b\u3001\u51e6\u7406\u3092\u4efb\u305b\u305f\u308a\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n

      \u3088\u308a\u8a73\u3057\u3044\u60c5\u5831<\/h2>\n

      TutorialOnline\u306b\u3066\u5229\u7528\u3057\u305d\u3046\u306a\u3053\u3068\u306b\u95a2\u3057\u3066\u306f\u3056\u3063\u304f\u308a\u3068\u8aac\u660e\u3057\u307e\u3057\u305f\u304c\u3001\u3088\u308a\u8a73\u3057\u304f\u77e5\u308a\u305f\u3044\u65b9\u306f\u4ee5\u4e0b\u306e\u30ea\u30f3\u30af\u306eQiita\u306ek0mach1\u69d8\u306e\u8a18\u4e8b\u306b\u66f8\u3044\u3066\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u53c2\u7167\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n

      <\/tr>
      # __0. \u306f\u3058\u3081\u306b__## \u25c6 \u5fc5\u8981\u306aAsset\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u57fa\u672c\u7684\u306a\u901a\u4fe1\u3067\u3042\u308c\u3070\u3001\u5fc5\u8981\u306a\u306e\u306fPhoton Unity Networking\u3060\u3051\u3002Asset Store\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u3087\u3046\u3002\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u8af8\u3005\u306f\u8a18\u4e8b\u3044\u3063\u3071...
      \u3010WIP\u3011\u3053\u308c\u3060\u3051\u3067PUN\u306b\u304a\u3051\u308b\u901a\u4fe1\u306f9\u5272\u308f\u304b\u308b - Qiita<\/a> - Qiita<\/td><\/tr><\/tbody><\/table><\/div>\n

      \u307e\u305f\u3001\u3055\u3089\u306bPUN\u306e\u30eb\u30fc\u30e0\u3084\u30ed\u30d3\u30fc\u9593\u306e\u51e6\u7406\u306b\u95a2\u3057\u3066\u306f\u3046\u3089\u5e72\u7269\u66f8\u304d\u69d8\u304c\u8a73\u3057\u304f\u8abf\u3079\u3066\u304f\u3060\u3055\u3063\u3066\u3044\u307e\u3059\u3002\u3068\u3066\u3082\u53c2\u8003\u306b\u306a\u308b\u306e\u3067\u4e00\u5ea6\u76ee\u3092\u901a\u3059\u3053\u3068\u3092\u304a\u52e7\u3081\u3044\u305f\u3057\u307e\u3059\u3002<\/p>\n

      <\/tr>
      \u30b2\u30fc\u30e0\u3092\u4f5c\u3063\u3066\u3044\u307e\u3059\u3002
      PUN \u30ab\u30c6\u30b4\u30ea\u30fc\u306e\u8a18\u4e8b\u4e00\u89a7 - \u3046\u3089\u5e72\u7269\u66f8\u304d<\/span> - \u3046\u3089\u5e72\u7269\u66f8\u304d<\/td><\/tr><\/tbody><\/table><\/div>\n

      \u6700\u5f8c\u306b<\/h2>\n

      \u672c\u8a18\u4e8b\u3067\u8aac\u660e\u3057\u305f\u3053\u3068\u3092\u5fdc\u7528\u3059\u308c\u3070\u9375\u4ed8\u304d\u306e\u30eb\u30fc\u30e0\u3092\u4f5c\u6210\u3057\u305f\u308a\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u306a\u306e\u3067\u662f\u975e\u3084\u3063\u3066\u307f\u3066\u304f\u3060\u3055\u3044\uff01<\/p>\n

      \u3082\u3057\u4f59\u88d5\u304c\u3042\u308c\u3070\u8a18\u4e8b\u306b\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"

      \u4eca\u56de\u306fPhoton\u306e\u30ed\u30d3\u30fc\u3068\u30eb\u30fc\u30e0\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002 \u306a\u3093\u3068\u306a\u304f\u8a00\u8449\u304b\u3089\u60f3\u50cf\u306f\u3064\u304f\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u4f8b\u3048\u3070\u30db\u30c6\u30eb\u3067\u5bbf\u6cca\u3059\u308b\u3068\u304d\u306e\u624b\u9806\u3092\u601d\u3044\u6d6e\u304b\u3079\u3066\u304f\u3060\u3055\u3044\u3002 \u30db\u30c6\u30eb\u306e\u5165\u308a\u53e3\u304b\u3089\u5165\u308b \u30ed\u30d3\u30fc\u306e\u53d7\u4ed8\u306b\u884c … <\/p>\n","protected":false},"author":1,"featured_media":523,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7,5],"tags":[],"_links":{"self":[{"href":"http:\/\/uniblo.biz\/wp-json\/wp\/v2\/posts\/515"}],"collection":[{"href":"http:\/\/uniblo.biz\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/uniblo.biz\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/uniblo.biz\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/uniblo.biz\/wp-json\/wp\/v2\/comments?post=515"}],"version-history":[{"count":9,"href":"http:\/\/uniblo.biz\/wp-json\/wp\/v2\/posts\/515\/revisions"}],"predecessor-version":[{"id":527,"href":"http:\/\/uniblo.biz\/wp-json\/wp\/v2\/posts\/515\/revisions\/527"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/uniblo.biz\/wp-json\/wp\/v2\/media\/523"}],"wp:attachment":[{"href":"http:\/\/uniblo.biz\/wp-json\/wp\/v2\/media?parent=515"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/uniblo.biz\/wp-json\/wp\/v2\/categories?post=515"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/uniblo.biz\/wp-json\/wp\/v2\/tags?post=515"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}