folderGeneral Utility

ASYNC Nodes

ASYNC Load Text File From Disk

circle-info

ASYNC Load Text File From Disk

Overview

This node enables you to load any text file from the users machine directly into Unreal Engine as string data.

Inputs

  • File Struct - The File struct contains details needed to load a file, including its path and name. Ensure the file name also includes its extension.

Outputs

  • On Success – Execute logic from here only when a file loads successfully.

  • On Fail – Execute logic from here only if file loading fails.

  • Success – Indicates success status: true or false, based on file loading results.

  • Loaded Data - The loaded text data of the specified text file.


ASYNC Save Text File To Disk

circle-info

ASYNC Save Text File To Disk

Overview

This node allows you to save any string text data from Unreal Engine directly to the user's machine.

Inputs

  • raw data - The string that will be saved to the user's machine, with the file type determined by the file extension specified in the "File" struct. This can be any data ranging from raw string, to JSON files.

  • File Struct - The File struct contains details needed to load a file, including its path and name. Ensure the file name also includes its extension.

Outputs

  • On Success – Execute logic from here only when a file saves successfully.

  • On Fail – Execute logic from here only if file saving fails.

  • Success – Indicates success status: true or false, based on file save results.


General Nodes

Load Text File From Disk

circle-info

Load Text File From Disk

Overview

This node enables you to load any text file from the users machine directly into Unreal Engine as string data.

As this is not a ASYNC node, meaning it will pause logic execution until the file successfully loads or fails.

Inputs

  • File Struct - The File struct contains details needed to load a file, including its path and name. Ensure the file name also includes its extension.

Outputs

  • Success – Indicates success status: true or false, based on file loading results.

  • Loaded Data - The loaded text data of the specified text file.


Save Text File To Disk

circle-info

Save Text File To Disk

Overview

This node allows you to save any string text data from Unreal Engine directly to the user's machine.

As this is not a ASYNC node, meaning it will pause logic execution until the file successfully loads or fails.

Inputs

  • raw data - The string that will be saved to the user's machine, with the file type determined by the file extension specified in the "File" struct.

  • File Struct - The File struct contains details needed to load a file, including its path and name. Ensure the file name also includes its extension.

Outputs

  • Success – Indicates success status: true or false, based on file save results.


Delete File From Disk

circle-info

Delete File From Disk

Overview

This node allows you to delete files from the user's machine. Use it responsibly and ensure that you only remove files that are safe and intended to be deleted. It is your responsibility to verify that each file is appropriate to remove.

Inputs

  • File Struct - The File struct contains details about the file you wish to remove, including its path and name. Ensure the file name also includes its extension.

  • Must Exist - Ensure that the file you intend to remove exists before attempting deletion. If the file does not exist on the user's machine, no action will be taken.

  • Even Read Only - Decide whether you want to allow the removal of read-only files. When this option is enabled, files marked as read-only can also be deleted.

  • Quiet - This option determines whether an error message should appear if the file deletion fails for any reason. When enabled, debug logs will be printed; when disabled, no output will be shown.

Outputs

  • Success – Indicates success status: true or false, based on if the file was deleted.


Pure Nodes

Check If File Exists

circle-info

Check If File Exists

Overview

This node lets you verify the existence of a specific file on the user's machine. It can be located anywhere, not limited to project files, as long as the file path and name of the file are valid.

Inputs

  • File Struct - The File struct contains details needed to load a file, including its path and name. Ensure the file name also includes its extension.

Outputs

  • Success – Indicates success status: true or false, based on if the file was found and it exists.


Value Truncate With Precision

circle-info

Value Truncate With Precision

Overview

A utility function that truncates a numeric value to a specified precision. By default, it uses an efficient method, with an optional slower but more accurate alternative. Note: Due to Unreal Engine’s internal handling, the result may occasionally be rounded up.

Inputs

  • Value – The input number you want to truncate to a specified precision.

  • Precision – The number of decimal places to retain after truncation.

  • Alternative Calculation - Enables a more accurate, but less optimized, truncation method.

Outputs

  • Success – Returns true if the truncation was successful. Otherwise returns false.

  • Out Value – The resulting value after truncation has been applied.

Last updated

Was this helpful?