UE4 4.25 C++创建表格

头文件

#include "Engine/DataTable.h"

//按钮UI表格

USTRUCT(BlueprintType,Blueprintable)
struct  FButtonWidgetAttr:public FTableRowBase{

    GENERATED_BODY()

public:

    //构造函数
    FButtonWidgetAttr() {};

    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        FName ButtonName;

    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        FVector2D Szie;

    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        int FontSize;

    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        class UTexture2D * Normal;

    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        class UTexture2D* Hovered;

    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        class UTexture2D* Pressed;
};

UCLASS()
class BACKPACKCPP_API UInventorySystemType : public UObject
{
    GENERATED_BODY()
};

原文地址:https://www.cnblogs.com/max404/p/14289223.html