Hello.
Can we play Niagara VFX from some particular point in time, not from the beginning? I tried using UNiagaraComponent::SetDesiredAge() and UNiagaraComponent::SeekToDesiredAge(), but VFX is played from the beginning.
I also tried using this but didn’t work;
NiagaraComponent->SetAgeUpdateMode(ENiagaraAgeUpdateMode::DesiredAge);
NiagaraComponent->SetSeekDelta(0.f);
NiagaraComponent->SeekToDesiredAge(4.f);
NiagaraComponent->Activate(true);
These approaches gave me something at least;
float OriginalWarmupTime = NiagaraComponent->GetAsset()->GetWarmupTime()
NiagaraComponent->GetAsset()->SetWarmupTime(4.f);
NiagaraComponent->Activate(true);
NiagaraComponent->GetAsset()->SetWarmupTime(OriginalWarmupTime);
NiagaraComponent->SetAgeUpdateMode(ENiagaraAgeUpdateMode::DesiredAge);
NiagaraComponent->Activate();
NiagaraComponent->AdvanceSimulationByTime(4.0f, UGameplayStatics::GetWorldDeltaSeconds(this));