UDataAsset blueprints not showing in "details" panel

Hi everyone!

I want to use UDataAsset objects as initialization parameters of other objects. I coded a UInitParamDataAsset with Blueprintable, BlueprintType and DefaultToInstanced specifiers. I have different blueprints Data1, Data2, etc. inheriting from UInitParamDataAsset.

Now I want to access those blueprints in my objects which need initialization params, but it doesn’t appear in the editor (“details” panel). Can you tell me how to set my static data asset to my objects ?

Here is a minimal example of my problem down below. I’m using version 4.25.4.

UCLASS(Blueprintable, BlueprintType, DefaultToInstanced)
class MINIMALEXAMPLE_API UInitParamDataAsset : public UDataAsset
{
	GENERATED_BODY()
	
public:
	UPROPERTY(EditAnywhere)
		int param1;

	UPROPERTY(EditAnywhere)
		int param2;

	UPROPERTY(EditAnywhere)
		int param3;
};


UCLASS(Blueprintable, BlueprintType)
class MINIMALEXAMPLE_API UObjectToInitialize : public UObject
{
	GENERATED_BODY()
	
public:
	UPROPERTY(EditAnywhere)
		UInitParamDataAsset* InitParams;

private:
	int param1;
	int param2;
	int param3;

private:
	void Initialize();
};


void UObjectToInitialize::Initialize()
{
	param1 = InitParams->param1;
	param2 = InitParams->param2;
	param3 = InitParams->param3;
}

Solved it !

I was creating blueprints inheriting from UInitParamDataAsset instead of creating assets with right click > miscellaneous > data asset.

I must remove the DefaultToInstanced specifier though. Do you know why ?