Templates

Choose your operating system:

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 struct

TIsTSubclassOf

Public class

TNonNullSubclassOf

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

Public class

TSubclassOf

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

Enums

Name

Description

Public enum

ECastType

Public enum

EDefaultConstructNonNullSubclassOf

So we can construct uninitialized TNonNullSubclassOf.

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 TObjectPtr< U >& Src
)

Object ptr 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 TObjectPtr< U >& 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 TObjectPtr< U >& 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...

 

UECasts_Private::DynamicCast

(
    From* Arg
)

Public function

TEnableIf<&#...

 

UECasts_Private::DynamicCast

(
    From* Arg
)

Public function

TEnableIf< T...

 

UECasts_Private::DynamicCast

(
    From&& Arg
)

Public function

TEnableIf<&#...

 

UECasts_Private::DynamicCast

(
    From&& Arg
)