ExitSpace (Unreal Engine)

- Declaration

static void ExitSpace(FCavrnusSpaceConnection SpaceConnection);

- Description

Disconnects you from a given space. You will stop receiving property updates, and lose user & voice connections. Note that you will remain Authenticated.

- Blueprint Sample

 

ExitSpace.png
Exit Space

- Code Sample

SpaceManager.h:

#include "Types/CavrnusCallbackTypes.h" #include "Types/CavrnusSpaceConnection.h" #include "SpaceManager.generated.h" UCLASS() class MODULE_API USpaceManager { public: USpaceManager(); void ExitSpace(); private: FCavrnusSpaceConnection CurrentConnectedSpace; };

SpaceManager.cpp:

#include "SpaceManager.h" #include "CavrnusFunctionLibrary.h" USpaceManager::USpaceManager() { } void USpaceManager::ExitSpace() { // Note: CurrentConnectedSpace would be set by result of JoinSpace call UCavrnusFunctionLibrary::ExitSpace(CurrentConnectedSpace); }