RealDocs

UActorComponent::SetComponentTickIntervalAndCooldown

function Engine Blueprint Since 4.0
#include "Components/ActorComponent.h"
Access: public Specifiers: ENGINE_APIUFUNCTIONBlueprintCallable

Description

Sets the tick interval for this component's primary tick function with immediate effect, resetting the internal cooldown timer so the next tick fires on the new schedule.

Caveats & Gotchas

  • Unlike SetComponentTickInterval, this resets the cooldown immediately — the next tick will fire TickInterval seconds from now, not at the previously scheduled time.
  • Does not enable the tick function. Call SetComponentTickEnabled(true) separately if needed.
  • The typo 'imediately' in the engine comment is present in source — this is the intended immediately-effective variant.

Signature

ENGINE_API void SetComponentTickIntervalAndCooldown(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

Change tick rate mid-game with instant effect C++
// After an event, slow the component to once per second, effective immediately
void UMyComponent::OnSlowModeActivated()
{
	SetComponentTickIntervalAndCooldown(1.0f);
}

Tags

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.