FVoxelCameraConfig
FVoxelCameraConfig belongs to the VoxelCamera runtime module.
Aute dolor lorem consectetur occaecat ad laboris sit do dolor incididunt et elit lorem esse. Ea dolore reprehenderit eiusmod adipiscing elit magna fugiat exercitation. Exercitation pariatur voluptate aliqua ad dolore labore ullamco fugiat reprehenderit ut et sed.
Declaration
1# Plugin configuration (VoxelCamera.yaml)
2plugin:
3 name: VoxelCamera
4 version: 2.0
5 settings:
6 max_pool_size: 100
7 tick_rate: 60.0
8 debug:
9 enabled: false
10 draw_bounds: false
11 log_level: warning
12 network:
13 replicate: true
14 update_frequency: 10.0
Members
| Function | Return Type | Description |
|---|---|---|
| Initialize() | void | Set up the subsystem |
| Query(Params) | bool | Execute a spatial query |
| GetState() | EMyState | Return current state |
| Reset() | void | Reset to default state |
| SetConfig(Config) | void | Apply a configuration |
Example
1UCLASS(ClassGroup=(Custom), meta=(BlueprintSpawnableComponent))
2class VOXEL_CAMERA_API UMyComponent : public UActorComponent
3{
4 GENERATED_BODY()
5
6public:
7 UMyComponent();
8
9 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Settings")
10 float UpdateInterval = 0.1f;
11
12 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Settings")
13 bool bAutoActivate = true;
14
15 UFUNCTION(BlueprintCallable, Category = "VoxelCamera")
16 void SetConfiguration(const FMyConfig& Config);
17
18protected:
19 virtual void BeginPlay() override;
20 virtual void TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override;
21
22private:
23 FMyConfig CurrentConfig;
24 float TimeSinceLastUpdate = 0.0f;
25};