Navigation
API > API/Runtime > API/Runtime/TypedElementRuntime > API/Runtime/TypedElementRuntime/ITypedElementObjectInterface
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
CastTo * GetObjectAs
(
const FTypedElementHandle& InElementHandle |
Attempts to cast the given handle to another class. | Elements/Interfaces/TypedElementObjectInterface.h | |
CastTo * GetObjectAs
(
const FTypedElementHandle& InElementHandle, |
Attempts to cast the given handle to another class, if it can also be casted to TargetClass. | Elements/Interfaces/TypedElementObjectInterface.h |
GetObjectAs(const FTypedElementHandle &)
Description
Attempts to cast the given handle to another class.
| Name | GetObjectAs |
| Type | function |
| Header File | /Engine/Source/Runtime/TypedElementRuntime/Public/Elements/Interfaces/TypedElementObjectInterface.h |
| Include Path | #include "Elements/Interfaces/TypedElementObjectInterface.h" |
template<class CastTo>
CastTo * GetObjectAs
(
const FTypedElementHandle & InElementHandle
)
the casted object if successful, otherwise nullptr.
GetObjectAs(const FTypedElementHandle &, TSubclassOf< CastTo >)
Description
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.
| Name | GetObjectAs |
| Type | function |
| Header File | /Engine/Source/Runtime/TypedElementRuntime/Public/Elements/Interfaces/TypedElementObjectInterface.h |
| Include Path | #include "Elements/Interfaces/TypedElementObjectInterface.h" |
template<class CastTo>
CastTo * GetObjectAs
(
const FTypedElementHandle & InElementHandle,
TSubclassOf < CastTo > TargetClass
)
the casted object if successful, otherwise nullptr.