Navigation
API > API/Plugins > API/Plugins/RenderGrid > API/Plugins/RenderGrid/Utils
References
| Module | RenderGrid |
| Header | /Engine/Plugins/Experimental/RenderGrid/Source/RenderGrid/Public/Utils/RenderGridUtils.h |
| Include | #include "Utils/RenderGridUtils.h" |
Syntax
class FRenderGridUtils
Remarks
A class containing static utility functions for the RenderGrid module.
Functions
| Type | Name | Description | |
|---|---|---|---|
| UTexture2D * | BytesToExistingImage
(
const TArray< uint8 >& ByteArray, |
Converts bytes into an texture. | |
| UTexture2D * | BytesToImage
(
const TArray< uint8 >& ByteArray, |
Converts bytes into a texture.Returns NULL if it fails. | |
| UTexture2D * | DataToExistingTexture2D
(
int32 Width, |
Converts texture data into an texture. | |
| UTexture2D * | DataToTexture2D
(
int32 Width, |
Converts texture data into a texture.Returns NULL if it fails. | |
| void | DeleteDirectory
(
const FString& Directory |
Deletes all files and directories in the given directory, including the given directory. | |
| FString | DenormalizeJobOutputDirectory
(
const FString& NormalizedOutputDirectory |
Returns a job output directory that's a usable valid filesystem path. | |
| FRenderGridPreviousEngineFpsSettings | Disables the current FPS limiting, returns the previous settings which allow you to revert back to the previous state. | ||
| void | EmptyDirectory
(
const FString& Directory |
Deletes all files and directories in the given directory, won't delete the given directory. | |
| TArray< uint8 > | GetFileData
(
const FString& File |
Returns the data of the file, returns an empty byte array if the file doesn't exist. | |
| TArray< FString > | Returns the paths of the files that exist in the given directory path. | ||
| UTexture2D * | GetImage
(
const FString& ImagePath, |
Loads an image from the disk, tries to automatically figure out the correct image format. | |
| TArray< uint8 > | GetRemoteControlValueBytesFromJson
(
const TArray< uint8 >& OldValueBytes, |
Converts a clean JSON string to low-level FProperty binary data. | |
| FString | GetRemoteControlValueJsonFromBytes
(
const TArray< uint8 >& ValueBytes, |
Converts the low-level FProperty binary data to a clean JSON string. | |
| bool | Returns true if the given file is likely a valid image. | ||
| FString | NormalizeJobOutputDirectory
(
const FString& NewOutputDirectory |
Returns a job output directory that's converted to a full path (if it's currently relative) and that also has the project directory path replaced by "{project_dir}" (if the given path contains that string). | |
| FString | NormalizeOutputDirectory
(
const FString& OutputDirectory |
Returns a normalized directory path. | |
| TSharedPtr< FJsonValue > | Parses the given JSON string and returns the FJsonValue. | ||
| FString | PurgeJobId
(
const FString& JobId |
Returns a job ID with all invalid characters removed from it. | |
| FString | PurgeJobIdOrGenerateUniqueId
(
URenderGrid* Grid, |
Returns a job ID with all invalid characters removed from it. | |
| FString | PurgeJobIdOrReturnEmptyString
(
const FString& JobId |
Returns a job ID with all invalid characters removed from it. | |
| FString | PurgeJobName
(
const FString& JobName |
Returns a job name with all invalid characters removed from it. | |
| void | RestoreFpsLimit
(
const FRenderGridPreviousEngineFpsSettings& Settings |
Reverts back to the previous (given) state. | |
| FString | ToJsonString
(
const TSharedPtr< FJsonValue >& Value, |
Converts the given FJsonValue to a string. |