UProperty::HasAllPropertyFlags

Used to safely check whether all of the passed in flags are set.

References

Module

CoreUObject

Header

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

Include

#include "UObject/UnrealTypePrivate.h"

Syntax

bool HasAllPropertyFlags
(
    uint64 FlagsToCheck
) const

Remarks

Used to safely check whether all of the passed in flags are set. This is required as PropertyFlags currently is a 64 bit data type and bool is a 32 bit data type so simply using PropertyFlags&CPF_MyFlagBiggerThanMaxInt won't work correctly when assigned directly to an bool.

Returns

true if all of the passed in flags are set (including no flags passed in), false otherwise

Parameters

Parameter

Description

FlagsToCheck

Object flags to check for

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