AActor::IsActorTickEnabled
#include "GameFramework/Actor.h"
Access: public
Specifiers: UFUNCTIONBlueprintCallable
Description
Returns true if this actor's primary tick function is currently enabled.
Caveats & Gotchas
- • Returns false both when tick was explicitly disabled and when PrimaryActorTick.bCanEverTick is false — there is no distinction between these two cases from the outside.
- • Does not reflect the tick state of owned components; use UActorComponent::IsComponentTickEnabled() for those.
Signature
bool IsActorTickEnabled() const Return Type
bool Example
Conditional re-enable tick C++
void AMyActor::OnActivated()
{
if (!IsActorTickEnabled())
{
SetActorTickEnabled(true);
}
} Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?