Navigation
API > API/Plugins > API/Plugins/PixelStreaming2Input > API/Plugins/PixelStreaming2Input/PIXELSTREAMING2IPixelStreaming2D- > API/Plugins/PixelStreaming2Input/PIXELSTREAMING2IPixelStreaming2D-/Add
References
| Module | PixelStreaming2Input |
| Header | /Engine/Plugins/Media/PixelStreaming2/Source/PixelStreaming2Input/Public/IPixelStreaming2DataProtocol.h |
| Include | #include "IPixelStreaming2DataProtocol.h" |
TSharedPtr < IPixelStreaming2InputMessage > Add
(
FString Key,
TArray < EPixelStreaming2MessageTypes > InStructure
)
Remarks
Adds a custom message type, with associated message structured, to the protocol. True if the new message was added to the protocol (fails if key is already present).
Parameters
| Name | Description |
|---|---|
| Key | The string identifier used to uniquely identify and query this message inside the protocol. |