UKismetSystemLibrary::K2_PauseTimer
#include "Kismet/KismetSystemLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintCallable
Description
Pauses a timer previously set with Set Timer by Function Name at its current elapsed time, identified by object and function name rather than a handle.
Caveats & Gotchas
- • The timer remains set in the timer manager while paused — Does Timer Exist by Function Name still returns true — so this does not free up the Object/FunctionName pair for a new, unrelated timer.
- • Safe to call on a function name with no active timer, or one that is already paused; both are silent no-ops.
Signature
static void K2_PauseTimer(UObject* Object, FString FunctionName); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| Object | UObject* | Object that implements the target function. Defaults to self (the blueprint the node is placed in). | — |
| FunctionName | FString | Name of the function whose timer should be paused, matched by string against the object's function table. | — |
Return Type
void Example
Pause a repeating tick while a menu is open (Blueprint) Blueprint
Event graph: on OpenPauseMenu, call 'Pause Timer by Function Name' with Object = self, FunctionName = 'ApplyDotTick'; on ClosePauseMenu, call 'Unpause Timer by Function Name' with the same pair to resume. Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?