EVoxelWaterPulseQuality
EVoxelWaterPulseQuality belongs to the VoxelWaterPulse runtime module.
Amet in ea fugiat veniam consectetur amet sit veniam. Consectetur aliquip tempor commodo aliqua consectetur aute ad aliquip aliqua enim. Ea labore elit commodo exercitation lorem amet occaecat sit dolore incididunt. Lorem eiusmod sit sit adipiscing pariatur sit veniam labore.
Declaration
1UCLASS(ClassGroup=(Custom), meta=(BlueprintSpawnableComponent))
2class VOXEL_WATER_PULSE_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 = "VoxelWaterPulse")
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};
Members
| Event | Parameters | Description |
|---|---|---|
| OnStateChanged | EMyState NewState | Fired when state transitions |
| OnProgressUpdated | float Progress, FString Message | Fired on progress change |
| OnError | FString ErrorMessage, int32 Code | Fired on error |
| OnInitialized | bool bSuccess | Fired after initialization |
Example
1UINTERFACE(MinimalAPI, Blueprintable)
2class UVoxelWaterPulseInterface : public UInterface
3{
4 GENERATED_BODY()
5};
6
7class IVoxelWaterPulseInterface
8{
9 GENERATED_BODY()
10
11public:
12 UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "VoxelWaterPulse")
13 void OnPluginActivated(bool bSuccess);
14
15 UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "VoxelWaterPulse")
16 FMyResult ProcessData(const FMyInput& Input);
17
18 UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "VoxelWaterPulse")
19 bool CanExecute() const;
20};