Using Photon in Unity
1. Apply for free PHOTON photon engine in China
photon official website address
1-1. Applying for an account
- Enter the official website, click Sign in in the upper right corner
- Log in
1-2. Application for APP
- Click CREATE A NEW APP
- Fill in the information
1-3. Apply for Free Photon Cloud in China
Apply for a free photon engine official website address in China
Go in and fill in the information, and it will be approved within 1-2 working days (generally it can be approved).
2. Using Photon in Unity
2-1. Download plug-in PUN2
- Download PUN2 in Asset Store
- Import to Unity, the PUN Setup interface will pop up, click Skip (fill in later)
- Find PhotonServerSettings
- Click PhotonServerSettings to fill in the information in the Inspector panel
a. Find the applied APP in the Photon personal homepage and fill it in the App Id PUN
b. Check Use Name Server
c. Fill in cn for Fixed Region
d. Fill in ns.photonengine.cn for Server
- Information after filling