UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ContentBundleDescriptor.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2#pragma once
3
4#include "CoreMinimal.h"
6#include "UObject/Object.h"
7
8#include "ContentBundleDescriptor.generated.h"
9
12struct FColor;
13
14UCLASS(MinimalAPI)
16{
18
19public:
20 const FString& GetDisplayName() const { return DisplayName; }
21 const FColor& GetDebugColor() const { return DebugColor; }
22 ENGINE_API FString GetPackageRoot() const;
23 const FGuid& GetGuid() const { return Guid; }
24
25#if WITH_EDITOR
27
28 //~ Begin UObject Interface
29 ENGINE_API virtual void PostLoad() override;
30 ENGINE_API virtual void PostDuplicate(bool bDuplicateForPIE) override;
31 //~ End UObject Interface
32#endif
33
34 ENGINE_API bool IsValid() const;
35
36 // Helper method that returns a compact string for a given content bundle ID
37 static ENGINE_API FString GetContentBundleCompactString(const FGuid& InContentBundleID);
38
39private:
40 ENGINE_API void InitDebugColor();
41
42 UPROPERTY(EditAnywhere, Category = BaseInformation)
43 FString DisplayName;
44
45 UPROPERTY(EditAnywhere, DuplicateTransient, Category = BaseInformation)
46 FColor DebugColor;
47
48 UPROPERTY(VisibleAnywhere, DuplicateTransient, Category = BaseInformation, AdvancedDisplay)
49 FGuid Guid;
50};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition WorldDataLayers.h:85
Definition ActorDescContainer.h:40
Definition ContentBundleDescriptor.h:16
const FColor & GetDebugColor() const
Definition ContentBundleDescriptor.h:21
const FGuid & GetGuid() const
Definition ContentBundleDescriptor.h:23
const FString & GetDisplayName() const
Definition ContentBundleDescriptor.h:20
Definition Object.h:95
Definition Color.h:486
Definition Guid.h:109