UVoxelCameraAsyncAction
UVoxelCameraAsyncAction belongs to the VoxelCamera runtime module.
Pariatur lorem ut elit fugiat ea magna ad lorem ex. Velit velit tempor ex adipiscing voluptate nisi pariatur. Dolore quis nisi voluptate laboris ad consequat elit. Nulla nulla ex ex consectetur do aliqua ut. Fugiat consequat ullamco minim ea sint pariatur sint excepteur.
Declaration
1Blueprint Setup:
21. Open your Actor Blueprint
32. Add Component > search "My Plugin Component"
43. In the Details panel, set:
5 - Update Interval: 0.1
6 - Auto Activate: true
7 - Max Instances: 50
84. Connect the OnStateChanged event to your handler
95. Compile and Save the Blueprint
Members
| Parameter | Type | Default | Description |
|---|---|---|---|
| MaxPoolSize | int32 | 100 | Maximum number of pooled objects |
| TickRate | float | 60.0 | Update frequency in Hz |
| bAutoActivate | bool | true | Activate on BeginPlay |
| LogVerbosity | ELogVerbosity | Warning | Minimum log level |
| ReplicationMode | ERepMode | Reliable | Network replication strategy |
Example
1#include "VoxelCamera.h"
2#include "Engine/World.h"
3
4void AMyActor::BeginPlay()
5{
6 Super::BeginPlay();
7
8 UVoxelCameraSubsystem* Subsystem = GetWorld()->GetSubsystem<UVoxelCameraSubsystem>();
9 if (Subsystem)
10 {
11 Subsystem->Initialize();
12 UE_LOG(LogTemp, Log, TEXT("Plugin subsystem initialized successfully"));
13 }
14}
Tip: Use the built-in profiling commands (stat MyPlugin) to monitor runtime performance in real time.