留作自用
如果更新了c++结构体,可以rebuild,然后把ue关闭,再重新打开,就不会有hot-reload了,如果有更好的方法,可以留言(这个方法很笨,而且不一定一直好用)
如报错UPaperSprite相关问题,见https://blog.csdn.net/qq_43661142/article/details/140554339?spm=1001.2014.3001.5502

// Fill out your copyright notice in the Description page of Project Settings.

#pragma once
#include <Engine/DataTable.h>
#include "CoreMinimal.h"
#include "PaperFlipbookComponent.h"
#include "UObject/NoExportTypes.h"
#include "DecorationsStruct.generated.h"
/**
 *
 */

USTRUCT(BlueprintType)
struct CARDGAME_API FDecorationsStruct : public FTableRowBase
{
	GENERATED_BODY()

public:
	UPROPERTY(EditAnywhere, BlueprintReadWrite)
	int32 Id;

	UPROPERTY(EditAnywhere, BlueprintReadWrite)
	FText Name;

	UPROPERTY(EditAnywhere, BlueprintReadWrite)
	TObjectPtr<UTexture2D> Image;

	UPROPERTY(EditAnywhere, BlueprintReadWrite)
	FText Introl;

	UPROPERTY(EditAnywhere, BlueprintReadWrite)
	TObjectPtr<UPaperSprite> SpriteSource;

	UPROPERTY(EditAnywhere, BlueprintReadWrite)
	TObjectPtr<UPaperFlipbook> SpriteSourcef;

};
Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐