UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ITypedElementObjectInterface Class Reference

#include <TypedElementObjectInterface.h>

+ Inheritance diagram for ITypedElementObjectInterface:

Public Member Functions

virtual TYPEDELEMENTRUNTIME_API UObjectGetObject (const FTypedElementHandle &InElementHandle)
 
virtual TYPEDELEMENTRUNTIME_API UClassGetObjectClass (const FTypedElementHandle &InElementHandle)
 
template<class CastTo >
CastToGetObjectAs (const FTypedElementHandle &InElementHandle)
 
template<class CastTo = UObject>
CastToGetObjectAs (const FTypedElementHandle &InElementHandle, TSubclassOf< CastTo > TargetClass)
 
virtual TYPEDELEMENTRUNTIME_API UObjectGetObject (const FScriptTypedElementHandle &InElementHandle)
 
virtual TYPEDELEMENTRUNTIME_API UClassGetObjectClass (const FScriptTypedElementHandle &InElementHandle)
 

Member Function Documentation

◆ GetObject() [1/2]

UObject * ITypedElementObjectInterface::GetObject ( const FScriptTypedElementHandle InElementHandle)
virtual

Script api Get the object instance that this handle represents, if any.

◆ GetObject() [2/2]

UObject * ITypedElementObjectInterface::GetObject ( const FTypedElementHandle InElementHandle)
virtual

Get the object instance that this handle represents, if any.

Reimplemented in UActorElementObjectInterface, UComponentElementObjectInterface, and UObjectElementObjectInterface.

◆ GetObjectAs() [1/2]

template<class CastTo >
CastTo * ITypedElementObjectInterface::GetObjectAs ( const FTypedElementHandle InElementHandle)
inline

Attempts to cast the given handle to another class.

Returns
the casted object if successful, otherwise nullptr.

◆ GetObjectAs() [2/2]

template<class CastTo = UObject>
CastTo * ITypedElementObjectInterface::GetObjectAs ( const FTypedElementHandle InElementHandle,
TSubclassOf< CastTo TargetClass 
)
inline

Attempts to cast the given handle to another class, if it can also be casted to TargetClass. This is intended for use in cases where the calling code may only need an actor pointer, but also wants to be sure it's a specific type of actor.

Returns
the casted object if successful, otherwise nullptr.

◆ GetObjectClass() [1/2]

UClass * ITypedElementObjectInterface::GetObjectClass ( const FScriptTypedElementHandle InElementHandle)
virtual

Gets the object instance's class that the handle represents, if any.

◆ GetObjectClass() [2/2]

UClass * ITypedElementObjectInterface::GetObjectClass ( const FTypedElementHandle InElementHandle)
virtual

Gets the object instance's class that the handle represents, if any.


The documentation for this class was generated from the following files: