Hy guys,
I trying access information (read and write) inside a DataAsset, I create this struct:
USTRUCT()
struct FExtraMaterial {
GENERATED_BODY()
UPROPERTY(EditAnywhere)
FString itemName;
UPROPERTY(EditAnywhere)
UTexture2D* itemThumbnail;
UPROPERTY(EditAnywhere)
UMaterial* itemMaterial;
};
UCLASS()
class CYRELAV1_API UItemsDatabase : public UDataAsset
{
GENERATED_BODY()
UPROPERTY(EditAnywhere)
TArray<FExtraMaterial> items;
};
To store extras materials to set on static mashes, but I realize I don’t know how access, to read and write information there.
Someone can help-me?