UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ActorDataLayer.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6
8
9#include "ActorDataLayer.generated.h"
10
11// This class is deprecated and only present for backward compatibility purposes.
12// Instead of using FActorDatalayer, directly save the DataLayerInstance FName if the DataLayer not exposed in data.
13// If the DataLayer is exposed in Data, then use DataLayerAssets.
14USTRUCT(BlueprintType)
16{
18
19 static_assert(DATALAYER_TO_INSTANCE_RUNTIME_CONVERSION_ENABLED, "FActorDataLayer is deprecated and needs to be deleted.");
20
24
25 FActorDataLayer(const FName& InName)
26 : Name(InName)
27 {}
28
29 inline bool operator==(const FActorDataLayer& Other) const { return Name == Other.Name; }
30 inline bool operator<(const FActorDataLayer& Other) const { return Name.FastLess(Other.Name); }
31
32 inline operator FName () const { return Name; }
33
35 UPROPERTY(BlueprintReadOnly, VisibleAnywhere, Category = DataLayer)
37
38 friend uint32 GetTypeHash(const FActorDataLayer& Value)
39 {
40 return GetTypeHash(Value.Name);
41 }
42};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define DATALAYER_TO_INSTANCE_RUNTIME_CONVERSION_ENABLED
Definition DataLayerInstance.h:14
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define USTRUCT(...)
Definition ObjectMacros.h:746
#define GENERATED_USTRUCT_BODY(...)
Definition ObjectMacros.h:767
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition NameTypes.h:617
Definition ActorDataLayer.h:16
FActorDataLayer(const FName &InName)
Definition ActorDataLayer.h:25
FActorDataLayer()
Definition ActorDataLayer.h:21
bool operator<(const FActorDataLayer &Other) const
Definition ActorDataLayer.h:30
bool operator==(const FActorDataLayer &Other) const
Definition ActorDataLayer.h:29