F7.UStruct|结构体
小于 1 分钟
- Rider添加一个类
- 添加如下函数
#pragma once
#include "CoreMinimal.h"
#include "MyStruct.generated.h"
USTRUCT(BlueprintType)
struct FMyStruct
{
GENERATED_BODY()
public:
};
- 当然也可以继承FTableRowBase使其可以变成datatable
#pragma once
#include "CoreMinimal.h"
#include"Engine/Datatable.h"
#include "MyStruct.generated.h"
USTRUCT(BlueprintType)
struct FMyStruct : public FTableRowBase
{
GENERATED_BODY()
public:
};