While using a butiful console command “record animation” I am creating new animation assets in desired folder. The question is - How can I delete this assets while playing?
I tried this code, but it doesn’t delete anything whatever name/path I’m trying to feed it:
#include "Time.h"
#include "MyBlueprintFunctionLibrary.h"
#include<stdio.h>
bool UMyBlueprintFunctionLibrary::DeleteAsset(FString FileToDelete)
{
if (remove("FileToDelete") != 0)
return 0;
else
return 1;
}
Blueprint code runs on level start:
