I created a custom asset for usage in the contend drawer with c++. I am able to import and view the data, but after a editor restart i cant open or edit the asset. The log shows the following message:
LogLinker: Warning: Unable to load dom1_32_306_5714_1_nw_2020 with outer Package /Game/Maps/Geldern/dom1_32_306_5714_1_nw_2020 because its class (UAscAsset) does not exist
Why could the class not be found after a restart of the editor? If i import a new file the new file works also until the next restart of the editor.
My Asset Class:
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "UObject/Object.h"
#include "UAscAsset.generated.h"
/**
*
*/
UCLASS(BlueprintType)
class ASCPLUGIN_API UAscAsset : public UObject
{
GENERATED_BODY()
public:
UPROPERTY(BlueprintReadOnly, Category = "ASC Info")
int NCols;
UPROPERTY(BlueprintReadOnly, Category = "ASC Info")
int NRows;
UPROPERTY(BlueprintReadOnly, Category = "ASC Info")
double XLL;
UPROPERTY(BlueprintReadOnly, Category = "ASC Info")
double YLL;
UPROPERTY(BlueprintReadOnly, Category = "ASC Info")
bool IsCellCenter; // if not cell center, then cell corner
UPROPERTY(BlueprintReadOnly, Category = "ASC Info")
int CellSize;
UPROPERTY(BlueprintReadOnly, Category = "ASC Info")
// Optional NO DATA value
int NoDataValue;
UPROPERTY(BlueprintReadOnly, Category = "ASC Info")
TArray<float> Data;
};