5 Feb
This commit is contained in:
parent
e2bea68d70
commit
89b8dab367
9 changed files with 8 additions and 0 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Content/UI/Icons/Load.uasset
Normal file
BIN
Content/UI/Icons/Load.uasset
Normal file
Binary file not shown.
BIN
Content/UI/Icons/Save.uasset
Normal file
BIN
Content/UI/Icons/Save.uasset
Normal file
Binary file not shown.
Binary file not shown.
|
|
@ -67,6 +67,11 @@ float UModdingExtraBPLibrary::ModdingExtraSampleFunction(float Param)
|
|||
return FFileHelper::LoadFileToString(SaveTextA, *(FPaths::ProjectContentDir() + FileNameA));
|
||||
}
|
||||
|
||||
bool UModdingExtraBPLibrary::SaveTxt(FString SaveTextB, FString FileNameB)
|
||||
{
|
||||
return FFileHelper::SaveStringToFile(SaveTextB, *(FPaths::ProjectContentDir() + FileNameB));
|
||||
}
|
||||
|
||||
FString UModdingExtraBPLibrary::ContentDirectory()
|
||||
{
|
||||
FString RelativePath = FPaths::ProjectContentDir();
|
||||
|
|
|
|||
|
|
@ -36,6 +36,9 @@ class UModdingExtraBPLibrary : public UBlueprintFunctionLibrary
|
|||
UFUNCTION(BlueprintPure, Category = "ModdingExtra", meta = (Keywords = "LoadTxt"))
|
||||
static bool LoadTxt(FString FileNameA, FString& SaveTextA);
|
||||
|
||||
UFUNCTION(BlueprintCallable, Category = "ModdingExtra", meta = (Keywords = "SaveTxt"))
|
||||
static bool SaveTxt(FString SaveTextB, FString FileNameB);
|
||||
|
||||
UFUNCTION(BlueprintPure, Category = "ModdingExtra")
|
||||
static FString ContentDirectory();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue