...
...
...
Insert the CavrnusSpatialConnector actor in the level.
Manually implement calls to the Cavrnus API Functions.
CavrnusSpatialConnector class
The CavrnusSpatialConnector is a specialized actor class that collects all of the required configuration elements into one convenient location.
Add an instance of the CavrnusSpatialConnector to your level by selecting it from the Cavrnus menu at the top of the Unreal Editor interface.
...
Select the CavrnusSpatialConnector instance in the level Outliner.
...
From the Details panel, configure all of your connection settings for this project:
...
CSC Configuration
...
As with any Unreal plugin, adding the Cavrnus Spatial Connector is a simple 3 step process:
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
To use a customized Avatar, simply assign it in the Cavrnus Spatial Connector.
...
To send your Co-Presence to other users, select the Local User’s rig and hit Cavrnus->Set Selected Object As Local User.
...
This will automatically add a CavrnusLocalUserFlag to your character and a SyncTransform component to send your position across the wire. As with remote avatars you can send and receive as many custom properties as you would like. However, ensure that the Property Names match between the Local Rig and the Remote Avatar. If you are sending a property named “position” and their Remote User Avatar is listening for one named “transform”, you’re gonna have a bad time.
Space UI
...
...
...
...
...
...
...
Next Steps
At this point, hitting Play in Unity should Authenticate the user and place them in a Space, with all of the relevant UI being spawned in with them!
Now you can start synchronizing the various things inside your project!
...
Tip |
---|
Next StepsYour level is now connected to a Cavrnus Space. If you run Play-In-Editor, the level will load into that space and you will be able to see the connection in the Session Analyzer. You’ll have Voice & Video capability, and see a user list with all of the other users in the Space. However, in the Session Analyzer you will only see the user logged in. You won’t see any property updates associated with your level. Next, we will add No-Code Collaboration Components to automatically synchronize an object's Properties. That way they can be synchronized across multiple connections. Alternatively, you can read up on more advanced techniques in our Developer Guide, or make calls directly using our API Reference. |