31 virtual
void TickComponent(
float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override;
39 UFUNCTION(BlueprintCallable)
40 void FadeStaticMeshes(TArray<
UStaticMeshComponent*> StaticMeshes,
float TimeForFade = 1.0f,
float DesiredOpacity = 0.0f);
50 UFUNCTION(BlueprintCallable)
51 void FadeStaticMeshesFromTo(TArray<
UStaticMeshComponent*> StaticMeshes,
float TimeForFade = 1.0f,
float FromOpacity = 0.0f,
float ToOpacity = 0.0f);
59 UFUNCTION(BlueprintCallable)
60 void FadeActor(
AActor*
Actor,
float TimeForFade = 1.0f,
float DesiredOpacity = 0.0f);
62 UPROPERTY(BlueprintAssignable)
63 FOnFadeCompleted OnFadeCompleted;
66 virtual
void BeginPlay() override;
72 void FadeOpacityTimelineProcess(
float Value);
75 void SetOpacity(
float Value);
76 void SetOpaqueMaterial();
77 void SetMeshesHidden(
bool Hidden);
83 float FadeDuration = 1.0f;
84 float CurrentOpacity = 1.0f;
85 float FinalOpacity = 0.0f;
87 FTimeline FadeTimeline;
89 UCurveFloat* ChangingFadeOpacityCurve;