AActor::SetActorTickInterval
#include "GameFramework/Actor.h"
Access: public
Specifiers: UFUNCTIONBlueprintCallable
Description
Sets the minimum time between consecutive ticks for this actor's primary tick function. Use this to reduce tick frequency on actors that don't need per-frame updates.
Caveats & Gotchas
- • The interval is a minimum, not a guarantee — the actor may tick less frequently if the frame rate drops below the interval rate.
- • Will not enable a currently disabled tick function. Call SetActorTickEnabled(true) first if needed.
- • The interval takes effect on the next scheduled tick, not immediately.
Signature
void SetActorTickInterval(float TickInterval) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| TickInterval | float | Minimum time in seconds between ticks. Set to 0 to tick every frame. | — |
Return Type
void Example
Reduce a background AI actor to 10 Hz C++
void ABackgroundNPC::BeginPlay()
{
Super::BeginPlay();
// Only update logic 10 times per second instead of every frame
SetActorTickInterval(0.1f);
} Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?