Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

- Declaration

static void AwaitAnySpaceBeginLoading(FCavrnusSpaceBeginLoading OnBeginLoading);

...

DECLARE_DYNAMIC_DELEGATE_OneParam(FCavrnusSpaceBeginLoading, FString, SpaceIdBeingLoaded);

- Description

Triggers when you begin attempting to join a space, returning the ID of the space being joined.

- Blueprint Sample

- Code Sample

Code Block
#include "CavrnusFunctionLibrary.h"
#include "Types/CavrnusCallbackTypes.h"

void UClassName::Init()
{
  // Member is FCavrnusSpaceBeginLoading SpaceBeginLoading;
  SpaceBeginLoading.BindUFunction(this, GET_FUNCTION_NAME_CHECKED(UClassName, OnSpaceBeginLoading));

  UCavrnusFunctionLibrary::AwaitAnySpaceBeginLoading(ReceiveSpacesList);
}

void UClassName::OnSpaceBeginLoading(FString SpaceIdBeingLoaded)
{
  UE_LOG(LogTemp, Log, TEXT("Space Loading ID: %s"), *SpaceIdBeingLoaded);
}