- Declaration
static TArray<FCavrnusUser> GetCurrentSpaceUsers(FCavrnusSpaceConnection SpaceConnection);
- Description
This gives a list of all FCavrnusUsers (TODO:LINK) currently in the space. Note that this list may be empty if called too soon after JoinSpace.
...
For a more robust/maintained list of users consider calling BindSpaceUsers.
- Blueprint Sample
...
- Code Sample
Code Block |
---|
#include "CavrnusFunctionLibrary.h" #include "Types/CavrnusSpaceConnection.h" #include "Types/CavrnusUser.h" void UClassName::LogAllUsers() { // Member is FCavrnusSpaceConnection SpaceConnection TArray<FCavrnusUser> UserList = UCavrnusFunctionLibrary::GetCurrentSpaceUsers(SpaceConnection); for (auto User : UserList) { UE_LOG(LogTemp, Log, TEXT("User %s is in the space."), *User.UserConnetionId); } } |
...