UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ActorElementData.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
6#include "UObject/Object.h"
8
9class AActor;
11
31
33
35{
36
42ENGINE_API AActor* GetActorFromHandle(const FTypedElementHandle& InHandle, const bool bSilent = false);
43
49ENGINE_API AActor* GetActorFromHandleChecked(const FTypedElementHandle& InHandle);
50
56template <typename ElementHandleType>
58{
61
63 {
64 if (AActor* Actor = GetActorFromHandle(Handle, bSilent))
65 {
66 Actors.Add(Actor);
67 }
68 }
69
70 return Actors;
71}
72
78template <typename ElementHandleType>
91
92} // namespace ActorElementDataUtil
#define UE_DEPRECATED(Version, Message)
Definition CoreMiscDefines.h:302
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
FString GetTypedElementDebugId(const ElementDataType &InElementData)
Definition TypedElementData.h:35
Definition Actor.h:257
Definition ArrayView.h:139
Definition Array.h:670
UE_FORCEINLINE_HINT void Reserve(SizeType Number)
Definition Array.h:3016
Definition ActorElementData.cpp:10
AActor * GetActorFromHandleChecked(const FTypedElementHandle &InHandle)
Definition ActorElementData.cpp:18
TArray< AActor * > GetActorsFromHandlesChecked(TArrayView< const ElementHandleType > InHandles)
Definition ActorElementData.h:79
AActor * GetActorFromHandle(const FTypedElementHandle &InHandle, const bool bSilent)
Definition ActorElementData.cpp:12
TArray< AActor * > GetActorsFromHandles(TArrayView< const ElementHandleType > InHandles, const bool bSilent=false)
Definition ActorElementData.h:57
Definition ActorElementData.h:16
ENGINE_API ~FActorElementData()
Definition ActorElementData.cpp:30
AActor * Actor
Definition ActorElementData.h:27
TWeakObjectPtr< AActor > ActorWeak
Definition ActorElementData.h:29
ENGINE_API FActorElementData()
Definition ActorElementData.cpp:26
UE_DECLARE_TYPED_ELEMENT_DATA_RTTI(FActorElementData)
ENGINE_API FActorElementData & operator=(const FActorElementData &Other)
Definition ActorElementData.cpp:50
Definition TypedElementHandle.h:18
Definition WeakObjectPtrTemplates.h:25