Quickstart
If you are integrating with an existing project please see the integration guide. The below instructions will use the default SQLite database setup.
Important note: Opening a UNET scene when you have Mirror imported, or vise versa, can corrupt the scenes! Ensure you open the correct scenes. Mirror scenes and prefabs are under the Mirror/
directory.
If you are NOT using Mirror, there will be an undefined reference in the ASMDEF files that points to Mirror. You can safely remove this if you intend to stay on UNET.
Quickstart for new projects:
Assumptions: You are on Windows 64 bit. If not, you may need to download sqlite dlls from: https://sqlite.org/download.html and place them into the Assets folder.
- Ensure TextMeshPro is in your project (from the Package Manager)
- Click Assets > Create > Llama Chat > Settings and configure your logging settings for Llama Chat.
- Ensure UNET or Mirror is in your project. On Unity 2019 UNET was removed by default. If you wish to use UNET you have to add it via the Package Manager. Otherwise install Mirror from the Asset Store.
- Open & run the
demo-login.unity
scene underAssets/Llama Software/Llama Chat/Demo/Scenes
- If you are using Mirror, open
mirror-demo-login.unity
underAssets/Llama Software/Llama Chat/Demo/Scenes/Mirror
- If you are using Mirror, open
- Create an Account (this is stored locally only)
You will spawn in a scene with 3 chat channels
- General - Global channel - Red
- Trade - Global channel - Orange
- Say - Local channel - White
If you run 2 instances of the demo you can notice that when players are far away from one another the players do not receive one anothers' messages in Say, but still can get General and Trade.