UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ExternalDataLayerAsset.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
7
8#include "ExternalDataLayerAsset.generated.h"
9
10#define UE_API ENGINE_API
11
12struct FAssetData;
13
14UCLASS(MinimalAPI, BlueprintType, editinlinenew)
16{
18
19public:
20#if WITH_EDITOR
21 static constexpr FColor EditorUXColor = FColor(255, 167, 26);
22#endif
23
24#if WITH_EDITOR
25 //~ Begin UObject Interface
26 UE_API virtual void PostDuplicate(bool bDuplicateForPIE) override;
27 UE_API virtual void GetAssetRegistryTags(FAssetRegistryTagsContext Context) const override;
28 //~ End UObject Interface
29
31#endif
32
33 //~ Begin UDataLayerAsset Interface
34#if WITH_EDITOR
35 UE_API virtual void OnCreated() override;
36 virtual bool CanEditDataLayerType() const override { return false; }
37#endif
38 virtual EDataLayerType GetType() const override { return EDataLayerType::Runtime; }
39 //~ End UDataLayerAsset Interface
40
41 const FExternalDataLayerUID& GetUID() const { return UID; }
42
43private:
44 UPROPERTY(VisibleAnywhere, Category = "Data Layer", AdvancedDisplay, DuplicateTransient, meta = (DisplayName = "External Data Layer UID"))
46};
47
48#undef UE_API
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
EDataLayerType
Definition DataLayerType.h:9
#define UE_API
Definition ExternalDataLayerAsset.h:10
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition AssetRegistryTagsContext.h:98
Definition DataLayerAsset.h:30
Definition ExternalDataLayerAsset.h:16
const FExternalDataLayerUID & GetUID() const
Definition ExternalDataLayerAsset.h:41
virtual EDataLayerType GetType() const override
Definition ExternalDataLayerAsset.h:38
Definition AssetData.h:162
Definition Color.h:486
Definition ExternalDataLayerUID.h:13