UDeltaCraftHubBlueprintLibrary
UDeltaCraftHubBlueprintLibrary belongs to the DeltaCraft Hub runtime module.
Laboris sint enim ad consequat velit amet dolor aliquip sint magna pariatur esse labore. In sit dolore consequat ea do velit sed. Duis sed voluptate sint tempor sed consectetur sit aliquip elit amet tempor eiusmod aliquip sint. Amet sed duis sed dolore sint reprehenderit voluptate et. Minim aliqua duis ut aliquip irure irure nulla sit magna aute. Veniam ea exercitation minim laboris dolor ad do irure et nulla nostrud ex fugiat.
Declaration
1// Load configuration from data asset
2UMyConfigAsset* Config = LoadObject<UMyConfigAsset>(
3 nullptr,
4 TEXT("/Game/Config/DefaultPluginConfig.DefaultPluginConfig")
5);
6
7if (Config)
8{
9 Settings.MaxPoolSize = Config->MaxPoolSize;
10 Settings.TickRate = Config->TickRate;
11 Settings.bEnableDebugDraw = Config->bEnableDebugDraw;
12 Settings.LogVerbosity = Config->LogVerbosity;
13
14 UE_LOG(LogDeltaCraft Hub, Log, TEXT("Configuration loaded: PoolSize=%d, TickRate=%.2f"),
15 Settings.MaxPoolSize, Settings.TickRate);
16}
Members
| Platform | Status | Notes |
|---|---|---|
| Windows | Fully Supported | Primary development platform |
| Linux | Fully Supported | Tested on Ubuntu 22.04+ |
| macOS | Supported | Requires Xcode 15+ |
| Android | Experimental | Limited debug tools |
| iOS | Experimental | Requires additional setup |
Example
1// Declare delegates for event-driven communication
2DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnStateChanged, EMyState, NewState);
3DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FOnProgressUpdated, float, Progress, FString, Message);
4
5UPROPERTY(BlueprintAssignable, Category = "Events")
6FOnStateChanged OnStateChanged;
7
8UPROPERTY(BlueprintAssignable, Category = "Events")
9FOnProgressUpdated OnProgressUpdated;
10
11// Broadcasting events
12void UMyManager::UpdateState(EMyState NewState)
13{
14 CurrentState = NewState;
15 OnStateChanged.Broadcast(NewState);
16 OnProgressUpdated.Broadcast(GetProgress(), GetStatusMessage());
17}
Tip: For best performance, pre-allocate your pool size during loading screens rather than during gameplay.