Navigation
API > API/Plugins > API/Plugins/PixelStreaming > API/Plugins/PixelStreaming/UPixelStreamingInput
Description
Helper function to add a string field to a JSON descriptor. This produces a new descriptor which may then be chained to add further string fields.
| Name | AddJsonStringValue |
| Type | function |
| Header File | /Engine/Plugins/Media/PixelStreaming/Source/PixelStreaming/Public/PixelStreamingInputComponent.h |
| Include Path | #include "PixelStreamingInputComponent.h" |
| Source | /Engine/Plugins/Media/PixelStreaming/Source/PixelStreaming/Private/PixelStreamingInputComponent.cpp |
UFUNCTION (BlueprintPure, Category="PixelStreaming Input")
void AddJsonStringValue
(
const FString & Descriptor,
FString FieldName,
FString StringValue,
FString & NewDescriptor,
bool & Success
)
Parameters
| Name | Remarks |
|---|---|
| Descriptor | The initial JSON descriptor which may be blank initially. |
| FieldName | The name of the field to add to the JSON. |
| StringValue | The string value associated with the field name. |
| NewDescriptor | The JSON descriptor with the string field added. |
| Success | True if the string field could be added successfully. |