Installation
You can install the Presence package using the Unity Package Manager (UPM) or using the internal artifactory.
Before you install the package, make sure you meet the prerequisites.
Prerequisites
To use the Presence package, you must have the following:
- Unity version 2021.3 or later
- A Unity account
- A new or existing Unity project
- A VPN to access Unity's internal artifactory
Install the Unity Cloud Presence package from the Unity Package Manager
Important: Unity Cloud SDKs are categorized as Experimental Packages. Before you can successfully install them from the Unity Package Manager, you must enable Experimental Packages from the Editor. See: Experimental packages
To install the Unity Cloud Presence package, follow these steps:
- In your Unity project, go to Windows > Package Manager.
- On the status bar, select the Add (+) button.
- From the Add menu, select Add + package by name. Name and Version fields appear.
- In the Name field, enter the name of the package you want to install.
Example: com.unity.cloud.[packageName] - Select Add.
The Editor installs the latest available version of the package and any dependent packages.
(Optional) Install Vivox
You can install Vivox for voice chat support, using the same steps described above for installing Presence.
Only the dependency will be different, as shown in the following snippet. Make sure you don't add the lines starting with //
. They were added in the snippet to provide some explanation. Adding these lines will generate an error within Unity.
{
"dependencies": {
// This line should already be present (See section above)
"com.unity.cloud.presence": "<x.y.z>",
// Here's the line that you should add in your manifest.json
"com.unity.services.vivox": "15.1.180001-pre.5",
// You can keep the other dependencies below
}
}
For more information about using Vivox, see the voice chat management page.