UVoxelCameraNetworkComponent
UVoxelCameraNetworkComponent belongs to the VoxelCamera runtime module.
Irure duis enim sed exercitation do ad magna sint enim tempor nisi laboris. Excepteur nulla labore sint incididunt quis aute veniam sit. Et ullamco lorem esse commodo voluptate aliquip et velit enim consequat tempor tempor consequat.
Declaration
1UINTERFACE(MinimalAPI, Blueprintable)
2class UVoxelCameraInterface : public UInterface
3{
4 GENERATED_BODY()
5};
6
7class IVoxelCameraInterface
8{
9 GENERATED_BODY()
10
11public:
12 UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "VoxelCamera")
13 void OnPluginActivated(bool bSuccess);
14
15 UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "VoxelCamera")
16 FMyResult ProcessData(const FMyInput& Input);
17
18 UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "VoxelCamera")
19 bool CanExecute() const;
20};
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// Unit test example
2IMPLEMENT_SIMPLE_AUTOMATION_TEST(
3 FVoxelCameraBasicTest,
4 "VoxelCamera.Core.BasicFunctionality",
5 EAutomationTestFlags::ApplicationContextMask | EAutomationTestFlags::ProductFilter
6)
7
8bool FVoxelCameraBasicTest::RunTest(const FString& Parameters)
9{
10 UVoxelCameraSubsystem* Subsystem = NewObject<UVoxelCameraSubsystem>();
11 TestNotNull(TEXT("Subsystem should be created"), Subsystem);
12
13 Subsystem->Initialize();
14 TestTrue(TEXT("Subsystem should be initialized"), Subsystem->IsInitialized());
15
16 FMyQueryParams Params;
17 Params.Radius = 500.0f;
18 TestTrue(TEXT("Query params should be valid"), Params.IsValid());
19
20 return true;
21}