I created a C++ class named SubtitleStruct
. In the .h
file, I defined a struct as follows:
#pragma once
include “CoreMinimal.h”
include “UObject/NoExportTypes.h”
include “Engine/DataTable.h”
include “SubtitleStruct.generated.h”
/**
*
*/
USTRUCT(BlueprintType)
struct FSubtitle : public FTableRowBase
{
GENERATED_BODY()
/*The subtitle that will be displayed for a specific period of time in our UI*/
UPROPERTY(EditAnywhere)
FString Subtitle;
};
Later, I deleted the SubtitleStruct : public UObject
class from .h file. After restarting Unreal Engine 5.4, the file no longer appears in the UE content browser. However, I can still see the file in Visual Studio, and everything compiles correctly. It works fine, but it’s not visible in UE, which is a bit annoying.
I’m not sure if this is a bug or if this behavior is expected? Or I’m doing something wrong?