AController::IsInState

States (uses FNames for replication, correlated to state flags)

Windows
MacOS
Linux

References

Module

Engine

Header

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

Include

#include "GameFramework/Controller.h"

Source

/Engine/Source/Runtime/Engine/Private/Controller.cpp

Syntax

bool IsInState
(
    FName InStateName
) const

Remarks

States (uses FNames for replication, correlated to state flags)

Returns

true if current state is StateName

Parameters

Parameter

Description

StateName

the name of the state to test against

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