Disclaimer
This API reference is still in early developmental stages. As such, some information may be missing or out of date. Feel free to refer to this documentation as a low level index of Engine classes and functions. However please reference the latest code for a complete understanding of functionality and performance.
Getting Started
Orientation
Real-time applications built in Unity or Unreal can be connected to the Cavrnus platform by placing the corresponding Cavrnus Metaverse Connector plugin in the project folder. Once enabled, developers have access to the following functions to enhance the functionality and data sharing of the project.
CAVRNUS CLASSES
Class Name | Base Class |
---|---|
UCavrnusConnectorFunctionLibrary | UBlueprintFunctionLibrary |
CAVRNUS FUNCTIONS
Bindings
Function Name | Description | Parameters | Return Type | UE Function Specifiers | Display Name |
---|---|---|---|---|---|
Unregisters the Binding so that callback will no longer be hit. | FCavrnusBinding disposable | void | BlueprintCallable, |
Data Model Access/Shutdown
Returns a reference to the Cavrnus Relay Model | |||||
Deletes the Relay Model, if it exists, and sets the reference to a null pointer. |
Authentication
Checks if you are logged in | N/A | bool | BlueprintCallable, | ||
Gets guest user credentials, allowing you to join valid spaces and make other requests | FString server, | void | BlueprintCallable, | ||
Gets guest user credentials via a link, and informs you of the spaceId you should then join | FString server, | void | BlueprintCallable, |
Space Functions
Triggers when spaces become available to you that you can join, or when their metadata changes | FCavrnusSpaceInfoEvent spaceAdded, FCavrnusSpaceInfoEvent spaceUpdated, FCavrnusSpaceInfoEvent spaceRemoved | FCavrnusBinding | BlueprintCallable, | Disposable | |
Checks if there is any active connection to a space | bool | BlueprintCallable, | |||
JoinSpace | Connects to a Space; joining voice & video and recieving/processing the journal | FString spaceId, | void | BlueprintCallable, | |
AwaitAnySpaceConnection | Triggers immediately if you are already in a space, otherwise triggers as soon as you connect | FCavrnusSpaceConnected onConnected | void | BlueprintCallable, | |
ExitSpace | Disconnects you from a given space. You will stop recieving property updates, and lose user & voice connections | FCavrnusSpaceConnection spaceConn | void | BlueprintCallable, | |
AwaitAnySpaceBeginLoading | <<Pending>> |
Color Property Functions
DefineColorPropertyDefaultValue | Defines what the application will show if a new prop value has not been assigned | FCavrnusSpaceConnection spaceConn, | void | BlueprintCallable, | |
GetColorPropertyValue | Gets the current property value, whether the default or the one currently set | FCavrnusSpaceConnection spaceConn, | Fcolor | BlueprintCallable, | |
BindColorPropertyValue | Triggers an Event when the property changes, plus an inital event when first bound | FCavrnusSpaceConnection spaceConn, | FCavrnusBinding | BlueprintCallable, | Disposable |
PostTransientColorPropertyUpdate | Begins a temporary property update. This will show for everyone in the space, but will not be saved unless finalized with a PostPropertyUpdate. | FCavrnusSpaceConnection spaceConn, | Fstring | BlueprintCallable, | |
PostColorPropertyUpdate | Updates the property value at the given path and synchronizes the data to the server | FCavrnusSpaceConnection spaceConn, | void | BlueprintCallable, |
Boolean Property Functions
DefineBoolPropertyDefaultValue | Defines what the application will show if a new prop value has not been assigned | FCavrnusSpaceConnection spaceConn, | void | BlueprintCallable, | |
GetBoolPropertyValue | Gets the current property value, whether the default or the one currently set | FCavrnusSpaceConnection spaceConn, | bool | BlueprintCallable, | |
BindBooleanPropertyValue | Triggers an Event when the property changes, plus an inital event when first bound | FCavrnusSpaceConnection spaceConn, | FCavrnusBinding | BlueprintCallable, | Disposable |
PostTransientBoolPropertyUpdate | Begins a temporary property update. This will show for everyone in the space, but will not be saved unless finalized with a PostPropertyUpdate. | FCavrnusSpaceConnection spaceConn, | Fstring | BlueprintCallable, | |
PostBoolPropertyUpdate | Updates the property value at the given path and synchronizes the data to the server | FCavrnusSpaceConnection spaceConn, | void | BlueprintCallable, |
Float Property Functions
DefineFloatPropertyDefaultValue | Defines what the application will show if a new prop value has not been assigned | FCavrnusSpaceConnection spaceConn, | void | BlueprintCallable, | |
GetFloatPropertyValue | Gets the current property value, whether the default or the one currently set | FCavrnusSpaceConnection spaceConn, | float | BlueprintCallable, | |
BindFloatPropertyValue | Triggers an Event when the property changes, plus an inital event when first bound | FCavrnusSpaceConnection spaceConn, | FCavrnusBinding | BlueprintCallable, | Disposable |
PostTransientFloatPropertyUpdate | Begins a temporary property update. This will show for everyone in the space, but will not be saved unless finalized with a PostPropertyUpdate. | FCavrnusSpaceConnection spaceConn, | Fstring | BlueprintCallable, | |
PostFloatPropertyUpdate | Updates the property value at the given path and synchronizes the data to the server | FCavrnusSpaceConnection spaceConn, | void | BlueprintCallable, |
String Property Functions
DefineStringPropertyDefaultValue | Defines what the application will show if a new prop value has not been assigned | FCavrnusSpaceConnection spaceConn, | void | BlueprintCallable, | |
GetStringPropertyValue | Gets the current property value, whether the default or the one currently set | FCavrnusSpaceConnection spaceConn, | Fstring | BlueprintCallable, | |
BindStringPropertyValue | Triggers an Event when the property changes, plus an inital event when first bound | FCavrnusSpaceConnection spaceConn, | FCavrnusBinding | BlueprintCallable, | Disposable |
PostTransientStringPropertyUpdate | Begins a temporary property update. This will show for everyone in the space, but will not be saved unless finalized with a PostPropertyUpdate. | FCavrnusSpaceConnection spaceConn, | Fstring | BlueprintCallable, | |
PostStringPropertyUpdate | Updates the property value at the given path and synchronizes the data to the server | FCavrnusSpaceConnection spaceConn, FString containerName, FString propertyName, FString propertyValue, FString transientToFinish = "" | void | BlueprintCallable, |
Vector Property Functions
DefineVectorPropertyDefaultValue | Defines what the application will show if a new prop value has not been assigned | FCavrnusSpaceConnection spaceConn, | void | BlueprintCallable, | |
GetVectorPropertyValue | Gets the current property value, whether the default or the one currently set | FCavrnusSpaceConnection spaceConn, | FVector4 | BlueprintCallable, | |
BindVectorPropertyValue | Triggers an Event when the property changes, plus an inital event when first bound | FCavrnusSpaceConnection spaceConn, | FCavrnusBinding | BlueprintCallable, | Disposable |
PostTransientVectorPropertyUpdate | Begins a temporary property update. This will show for everyone in the space, but will not be saved unless finalized with a PostPropertyUpdate. | FCavrnusSpaceConnection spaceConn, | Fstring | BlueprintCallable, | |
PostVectorPropertyUpdate | Updates the property value at the given path and synchronizes the data to the server | FCavrnusSpaceConnection spaceConn, | void | BlueprintCallable, |
Transform Property Functions
DefineTransformPropertyDefaultValue | Defines what the application will show if a new prop value has not been assigned | FCavrnusSpaceConnection spaceConn, | void | BlueprintCallable, | |
GetTransformPropertyValue | Gets the current property value, whether the default or the one currently set | FCavrnusSpaceConnection spaceConn, | Ftransform | BlueprintCallable, | |
BindTransformPropertyValue | Triggers an Event when the property changes, plus an inital event when first bound | FCavrnusSpaceConnection spaceConn, | FCavrnusBinding | BlueprintCallable, | Disposable |
PostTransientTransformPropertyUpdate | Begins a temporary property update. This will show for everyone in the space, but will not be saved unless finalized with a PostPropertyUpdate. | FCavrnusSpaceConnection spaceConn, | Fstring | BlueprintCallable, | |
PostTransformPropertyUpdate | Updates the property value at the given path and synchronizes the data to the server | FCavrnusSpaceConnection spaceConn, | void | BlueprintCallable, | |
CavrnusLivePropertyUpdate | <<Pending>> |
Spawned Objects
Instantiates the given object with no set properties (note you will need to pull the Container ID out of the Spawned Object and assign property values to it). | FCavrnusSpaceConnection spaceConn, | Fstring | BlueprintCallable, | Container Name | |
DestryObject | Destroys the given object. | FCavrnusSpaceConnection spaceConn, | void | BlueprintCallable, | |
GetIfIsSpawnedObject | Gets the spawned object's data if it was created by Cavrnus | FCavrnusSpaceConnection spaceConn, | FCavrnusSpawnedObject | BlueprintCallable, | |
FCavrnusSpawnedObject | << Pending >> | ||||
UseComponents | << Pending >> |
Space Users
BindSpaceUsers | Triggers whenever users join or leave a given space | FCavrnusSpaceConnection spaceConn, | BlueprintCallable, | Disposable | |
BindUserVideoFrames | Triggers an Event when the property changes | FCavrnusSpaceConnection spaceConn, | BlueprintCallable, | Disposable |
Voice and Video
SetUserMutedState | Set my muted state | Set my muted state | BlueprintCallable, | ||
SetUserStreamingState | Set my streaming state | Set my streaming state | BlueprintCallable, | ||
FetchAudioInputs | Gets available microphones | Gets available microphones | BlueprintCallable, | ||
UpdateAudioInput | Sets which microphone to use | Sets which microphone to use | BlueprintCallable, | ||
FetchAudioOutputs | Gets available speakers | Gets available speakers | BlueprintCallable, | ||
UpdateAudioOutput | Sets which speaker to use | Sets which speaker to use | BlueprintCallable, | ||
FetchVideoInputs | Gets available camera/stream sources | Gets available camera/stream sources | BlueprintCallable, | ||
UpdateVideoInput | Sets which camera/stream source to use | Sets which camera/stream source to use | BlueprintCallable, | ||
GetCurrentInput | << Pending >> | ||||
GetCurrentOutput | << Pending >> |