AActor::RemoveTickPrerequisiteActor
#include "GameFramework/Actor.h"
Access: public
Specifiers: virtualUFUNCTIONBlueprintCallable
Description
Removes a previously added actor tick prerequisite so this actor can tick freely again relative to that actor.
Caveats & Gotchas
- • Calling this with an actor that was never added as a prerequisite is a no-op, but you must still ensure the pointer is valid to avoid a crash.
- • Does not affect component-level prerequisites added via AddTickPrerequisiteComponent.
Signature
virtual void RemoveTickPrerequisiteActor(AActor* PrerequisiteActor) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| PrerequisiteActor | AActor* | The actor to remove as a tick prerequisite. | — |
Return Type
void Example
Remove prerequisite when platform is destroyed C++
void ATurret::OnBasePlatformDestroyed(AActor* DestroyedActor)
{
RemoveTickPrerequisiteActor(DestroyedActor);
BasePlatform = nullptr;
} Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?