Navigation
API > API/Plugins > API/Plugins/InterchangeTests
| Name | FInterchangeTestFunction |
| Type | struct |
| Header File | /Engine/Plugins/Tests/InterchangeTests/Source/InterchangeTests/Public/InterchangeTestFunction.h |
| Include Path | #include "InterchangeTestFunction.h" |
Syntax
USTRUCT ()
struct FInterchangeTestFunction
Classes
| Name | Remarks |
|---|---|
| FParameters | Provide a readable user-facing way of iterating the function parameters of interest. |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AssetClass | TSubclassOf< UObject > | Type of the asset being tested | InterchangeTestFunction.h |
|
| CheckFunction | TObjectPtr< UFunction > | A function to be called to determine whether the result is correct | InterchangeTestFunction.h |
|
| OptionalAssetName | FString | Optional name of the asset to test, if there are various contenders | InterchangeTestFunction.h |
|
| Parameters | TMap< FName, FString > | Parameters and their bound values as text | InterchangeTestFunction.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ExportParameters() |
Export parameter data from binary to text | InterchangeTestFunction.h | |
UClass * GetExpectedClass() |
Return the class type expected as the first parameter to the function | InterchangeTestFunction.h | |
int32 GetNumParameters() |
Returns the number of parameters which must be bound to this function call | InterchangeTestFunction.h | |
FParameters GetParameters() |
Return a proxy object which is used to iterate through function parameters of interest | InterchangeTestFunction.h | |
void ImportParameter
(
FStructOnScope& ParamData, |
Import a single parameter from text to an existing binary buffer | InterchangeTestFunction.h | |
TSharedPtr< FStructOnScope > ImportParameters() |
Import all parameter data from text to a new binary buffer | InterchangeTestFunction.h | |
FInterchangeTestFunctionResult Invoke
(
const TArray< UObject* >& AssetsToTest |
Call the test function bound with the held parameter values | InterchangeTestFunction.h | |
bool IsValid
(
UFunction* Function |
Return whether the given function is valid or not | InterchangeTestFunction.h | |
bool RequiresArrayOfAssets() |
Return whether the function takes an array of assets | InterchangeTestFunction.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Return a list of the supported asset classes | InterchangeTestFunction.h | ||
| Return a list of available functions which can act upon an asset of the given class | InterchangeTestFunction.h |