实现AssetFactory类和Asset类
Asset类是产生的资源文件。这个我写了一个字符串。
#pragma once
#include "SlateCore.h"
#include "UIAsset.generated.h"
UCLASS(hidecategories = Object, BlueprintType)
class 111_API UUIAsset : public UObject
{
GENERATED_UCLASS_BODY()
public:
UPROPERTY(Category = Brush, EditAnywhere, meta = (ShowOnlyInnerProperties))
FString test;
virtual void PostLoad() override;
};
Factory类
#pragma once
#include "UnrealED.h"
#include "UIAssetFactory.generated.h"
class UFactory;
/** Factory for creat