Templates

Windows
MacOS
Linux

Classes

Name

Description

Public struct

TCastFlags

Public struct

TCastImpl

Public struct

TGetCastType

Public struct

TIsCastable

Public struct

TIsCastableToPointer

Public struct

TIsIInterface

Metafunction which detects whether or not a class is an IInterface.

Public class

TSubclassOf

Template to allow TClassType's to be passed around with type safety

Enums

Name

Description

Public enum

ECastType

Functions

Name Description

Public function

To *

 

Cast

(
    From* Src
)

Dynamically cast an object type-safely.

Public function

T *

 

Cast

(
    const TWeakObjectPtr< U >& Src
)

Auto weak versions

Public function

T *

 

Cast

(
    const FSubobjectPtr& Src
)

FSubobjectPtr versions.

Public function

T *

 

Cast

(
    const TSubclassOf< U >& Src
)

TSubclassOf versions.

Public function

const T *...

 

Cast

(
    const U* Src
)

Const versions of the casts.

Public function

T *

 

CastChecked

(
    const TSubclassOf< U >& Src,
    ECastCheckedType::Type CheckType
)

Public function

const T *...

 

CastChecked

(
    const U* Src,
    ECastCheckedType::Type CheckType
)

Public function

To *

 

CastChecked

(
    From* Src
)

Public function

To *

 

CastChecked

(
    From* Src,
    ECastCheckedType::Type CheckType
)

Public function

T *

 

CastChecked

(
    const TWeakObjectPtr< U >& Src,
    ECastCheckedType::Type CheckType
)

Public function

T *

 

CastChecked

(
    const FSubobjectPtr& Src,
    ECastCheckedType::Type CheckType
)

Public function

void

 

CastLogError

(
    const TCHAR* FromType,
    const TCHAR* ToType
)

Public function

T *

 

ExactCast

(
    UObject* Src
)

Public function

T *

 

ExactCast

(
    const TWeakObjectPtr< U >& Src
)

Public function

T *

 

ExactCast

(
    const FSubobjectPtr& Src
)

Public function

const T *...

 

ExactCast

(
    const UObject* Src
)

Public function

FString

 

GetFullNameForCastLogError

(
    T* InObjectOrInterface
)

Helper function to get the full name for UObjects and UInterfaces.

Public function

TEnableIf< T...

 

GetTypeName()

Public function

TEnableIf<&#...

 

GetTypeName()

Public function

TEnableIf< T...

 

UE4Casts_Private::DynamicCast

(
    From* Arg
)

Public function

TEnableIf<&#...

 

UE4Casts_Private::DynamicCast

(
    From* Arg
)

Public function

TEnableIf< T...

 

UE4Casts_Private::DynamicCast

(
    From&& Arg
)

Public function

TEnableIf<&#...

 

UE4Casts_Private::DynamicCast

(
    From&& Arg
)

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