Navigation
API > API/Plugins > API/Plugins/PCGToolset > API/Plugins/PCGToolset/UPCGToolset
Description
Updates an existing comment box with new nodes and value. Note: If the bounding box of the nodes include other nodes, they will be included in the comment.
| Name | UpdateCommentBox |
| Type | function |
| Header File | /Engine/Plugins/Experimental/Toolsets/PCGToolset/Source/PCGToolset/Public/PCGToolset.h |
| Include Path | #include "PCGToolset.h" |
| Source | /Engine/Plugins/Experimental/Toolsets/PCGToolset/Source/PCGToolset/Private/PCGToolset.cpp |
UFUNCTION (Meta=(AICallable), Category="PCG|CommentBox")
static bool UpdateCommentBox
(
UPCGGraph * Graph,
const FString & CommentId,
const TArray < UPCGNode * > & Nodes,
const FString & Comment,
FLinearColor Color
)
boolean representing success/failed
Parameters
| Name | Remarks |
|---|---|
| Graph | Graph to add comment to. |
| CommentId | The unique id of the comment to update. |
| Nodes | The list of nodes to include in the comment box. If empty, the box will keep its current dimensions. |
| Comment | The new comment to put on the comment box. If empty, will keep the same text as it was. Default is empty. |
| Color | The color of the comment box. Defaults to White |