UPrimeDialogForgeAudioComponent
UPrimeDialogForgeAudioComponent belongs to the PrimeDialog Forge runtime module.
Consequat lorem reprehenderit aliqua adipiscing fugiat cillum ex dolor aliquip voluptate commodo. Ipsum voluptate et amet pariatur ex aliquip minim. Ullamco dolore reprehenderit excepteur duis cillum quis in lorem fugiat quis sed commodo velit enim.
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
| 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
1UCLASS(ClassGroup=(Custom), meta=(BlueprintSpawnableComponent))
2class PRIME_DIALOG_FORGE_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 = "PrimeDialog Forge")
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};
Note: This feature is available starting from version 2.0. Older versions use a different API.