Photon PUN 一 介绍
有句话说的好 , 官网永远是最好的学习地方 . 虽然国内的资料不多 , 但是官网的资料还是很充足 , 这就带着英汉词典就着作阅读理解的劲头去官网学习吧
https://doc.photonengine.com/zh-tw/pun/current/getting-started/initial-setup
简介就不看了 , 直接插入正题
一, Photon PUN 安装
①下载 Photon Unity Networking Free
②下载 Photon cloud server

③注册Photon cloud 账号 https://www.photonengine.com/zh-TW/Account/SignUp
④获取授权文件 https://www.photonengine.com/zh-TW/OnPremise/Dashboard

⑤获取APPID https://www.photonengine.com/zh-tw/dashboard

⑥ 新建工程 导入Photon Unity Networking Free.unitypackage
输入APPID

⑦ 初始Photon PUN设置

⑧ 开启本地Photon server
打开 Photon-OnPremise-Server-SDK_v4-0-29-11263.exe 自解压到一个文件夹

打开 deploy 文件夹

把 ④ 下载的授权文件 粘贴到与系统对应的文件夹

双击 PhotonControl.exe 启动LoadBalancing(MyCloud) -> Start service

LoadBalancing(MyCloud) 就是本地的伺服务器

这里的IP就是填在 Server Address的地址

OK PUN的安装已经基本完成

浙公网安备 33010602011771号