ECastCheckedType::Type

Parameter enum for [CastChecked()](API\Runtime\CoreUObject\Templates\CastChecked\1) function, defines when it will check/assert

Windows
MacOS
Linux

References

Module

CoreUObject

Header

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

Include

#include "UObject/Object.h"

Syntax

namespace ECastCheckedType
{
    enum Type
    {
        NullAllowed,
        NullChecked,
    }
}

Values

Name

Description

NullAllowed

Null is okay, only assert on incorrect type

NullChecked

Null is not allowed, assert on incorrect type or null

Remarks

Parameter enum for CastChecked() function, defines when it will check/assert

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