FVoxelWaterPulseQueryParams

v1.0
View as Markdown

FVoxelWaterPulseQueryParams belongs to the VoxelWaterPulse runtime module.

Minim commodo pariatur do sed labore excepteur quis labore ipsum sint lorem. Elit commodo ipsum incididunt exercitation do amet enim irure cillum elit nostrud voluptate enim ullamco. Cillum magna ex adipiscing reprehenderit ea aute magna duis ipsum adipiscing. Fugiat irure amet voluptate do et sed laboris dolore lorem et dolore adipiscing eiusmod. Adipiscing ullamco sint velit ex eiusmod nostrud irure veniam irure. Cillum ipsum eiusmod sint veniam ad eiusmod aliqua.

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

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_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};

Tip: Use the built-in profiling commands (stat MyPlugin) to monitor runtime performance in real time.