Navigation
API > API/Plugins > API/Plugins/PCGToolset > API/Plugins/PCGToolset/UPCGToolset
Description
Triggers the user to draw a spline in the viewport to be used later in the world building. Waits for the user to be done.
| Name | DrawSpline |
| 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/PCGToolsetAsync.cpp |
UFUNCTION (Meta=(AICallable), Category="PCG|Other")
static UToolCallAsyncResultVoid * DrawSpline
(
const FString & ActorLabel,
const FString & ActorTag,
bool bRedraw,
bool bClosedSpline
)
Parameters
| Name | Remarks |
|---|---|
| ActorLabel | The label of the actor created or if bRedraw, the label of the actor to redraw the spline |
| ActorTag | Tag assigned to the actor |
| bRedraw | false: creates a new actor with the spline. true: find an actor with the label, and replaces its spline. |
| bClosedSpline | true: closed spline (region) false: path. |