UClass::HasAnyCastFlag

Used to safely check whether the passed in flag is set.

Windows
MacOS
Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/UObject/Class.h

Include

#include "UObject/Class.h"

Syntax

bool HasAnyCastFlag
(
    EClassCastFlags FlagToCheck
) const

Remarks

Used to safely check whether the passed in flag is set.

Returns

true if the passed in flag is set, false otherwise (including no flag passed in)

Parameters

Parameter

Description

FlagToCheck

the cast flag to check for (value should be one of the EClassCastFlags enums)

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