Example Game
Summary
The example chat game is a Unity sample project that contains example codes to allow users to easily utilize the chat functions.
-59191a96a3c7e5bb93a1295815ff9e0d.png)
The example was developed in the following versions:
- Unity 2022.3.13f1
- Backend 5.11.9
Download
- BackndChatExample.unitypackage [2024-10-29]
- Android, iOS, Windows, Mac, Linux
How to Configure
1. Import the example chat game
Download BackndChatExample.unitypackage from the link above and import it.
-e39a353419d9822fe0af9aa7c56358dc.png)
2. Enable chat in the console
Go to BACKND Console's Chat > Settings and click Enable Chat.
-a062d1f53cef21cad2bbbea44c207cbc.png)
3. Enter the common server key of the BACKND Console project
In BACKND Console, go to Chat > Settings tab and copy the common server key.
-3cbdd7fbea26b9a64a836197ddd14e64.png)
Click The Backend > Edit Settings on the upper side of Unity. Then, enter the Client App ID and Signature Key in the created inspector.
-40a73ccc71f25d18183430f61e8917ff.png)
4. Enter the chat server key of the BACKND Console project
Go to BACKND Console's Chat > Settings and copy the Chat UUID.
-10b27cc43cfce2b8db14cb4545007bd3.png)
Click The Backend > Edit Chat Settings on the upper side of Unity. Then, enter the Chat UUID in the created inspector.
-453d963fe645692777179fee6db9e4c5.png)
5. Create channel groups and channels
Click the + button next to Channel Groups.
-09ecab6518e3c117de0930b188903d5d.png)
Click Open Type and click Next.
-8f94229f0c98a053e14b16f1c2e318e7.png)
Enter the channel group name and the maximum number of users per channel. Then, select a FALLBACK channel and click Next.
-454cb7756fe112056bcdd83bb0b9e587.png)
Enter the name of the first channel and click the Create button.
-0d63d024ce69671daaa2877b5716ce08.png)
-69b0ee17825f63c18f9f756a3fa4b0b2.png)
6. Run project
The configuration is complete. You can now run the Unity project.
-59191a96a3c7e5bb93a1295815ff9e0d.png)