October 2016
Intermediate to advanced
452 pages
9h 47m
English
At some point in your project, you might need to create a new custom Asset class, for example, an Asset to store conversation data in an RPG.
In order to properly integrate these with Content Browser, you'll need to create a new Asset type.
UObject:#pragma once
#include "Object.h"
#include "MyCustomAsset.generated.h"
/**
*
*/
UCLASS()
class UE4COOKBOOK_API UMyCustomAsset : public UObject
{
GENERATED_BODY()
public:
UPROPERTY(EditAnywhere, Category = "Custom Asset")
FString Name;
};UCustomAssetFactory based on UFactory, overriding FactoryCreateNew:#pragma once #include "Factories/Factory.h" #include "CustomAssetFactory.generated.h" /** * */ UCLASS() class UE4COOKBOOK_API ...
Read now
Unlock full access