UActorComponent::SetComponentTickInterval
#include "Components/ActorComponent.h"
Access: public
Specifiers: ENGINE_APIUFUNCTIONBlueprintCallable
Description
Sets the tick interval for this component's primary tick function. Does not enable the tick function — the change takes effect on the next tick.
Caveats & Gotchas
- • This does NOT enable ticking — you must separately call SetComponentTickEnabled(true) if ticking is disabled.
- • The change takes effect on the next tick, not immediately. Use SetComponentTickIntervalAndCooldown if you need instant effect.
- • Setting TickInterval to 0 restores the default (every-frame) tick rate.
Signature
ENGINE_API void SetComponentTickInterval(float TickInterval); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| TickInterval | float | The duration in seconds between ticks for this component's primary tick function. | — |
Return Type
void Example
Throttle a component to tick 5 times per second C++
void UMyComponent::BeginPlay()
{
Super::BeginPlay();
SetComponentTickEnabled(true);
SetComponentTickInterval(0.2f); // 5 ticks/sec
} See Also
Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?