AController::IsInState

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

Choose your operating system:

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