RealDocs

AActor::K2_OnReset

function Engine Blueprint Since 4.0
#include "GameFramework/Actor.h"
Access: public Specifiers: UFUNCTIONBlueprintImplementableEvent

Description

Blueprint-implementable event fired when this actor is reset to its initial state, such as when restarting a level without reloading. Override in Blueprint to react to level resets.

Caveats & Gotchas

  • The C++ counterpart is `Reset()`, which you override in C++ classes. `K2_OnReset` is the Blueprint hook — calling it directly from C++ does nothing unless you have a Blueprint subclass that implements it.
  • This is not called on PIE start or on initial actor spawn — only when `Reset()` is explicitly invoked, e.g. by `AGameModeBase::ResetLevel()`.

Signature

ENGINE_API void K2_OnReset()

Return Type

void

Example

Override in Blueprint subclass C++
// In C++ base class, trigger the event via Reset():
void AMyActor::Reset()
{
    Super::Reset(); // internally calls K2_OnReset for Blueprint subclasses
    Health = MaxHealth;
}

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.