AGameModeBase::ShouldReset

Overridable function to determine whether an Actor should have Reset called when the game has Reset called on it.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/GameModeBase.h

Include

#include "GameFramework/GameModeBase.h"

Syntax

bool ShouldReset
(
    AActor * ActorToReset
)

Remarks

Overridable function to determine whether an Actor should have Reset called when the game has Reset called on it. Default implementation returns true

Returns

true if ActorToReset should have Reset() called on it while restarting the game, false if the GameMode will manually reset it or if the actor does not need to be reset

Parameters

Parameter

Description

ActorToReset

The actor to make a determination for

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss