Navigation
API > API/Plugins > API/Plugins/MeshModelingToolsExp > API/Plugins/MeshModelingToolsExp/Spline
Inheritance Hierarchy
- UInteractiveTool
- IInteractiveToolEditorGizmoAPI
- IDynamicMeshOperatorFactory
- UBaseMeshFromSplinesTool
- URevolveSplineTool
- UTriangulateSplinesTool
References
| Module | MeshModelingToolsExp |
| Header | /Engine/Plugins/Experimental/MeshModelingToolsetExp/Source/MeshModelingToolsExp/Public/Spline/BaseMeshFromSplinesTool.h |
| Include | #include "Spline/BaseMeshFromSplinesTool.h" |
Syntax
UCLASS ()
class UBaseMeshFromSplinesTool :
public UInteractiveTool ,
public IInteractiveToolEditorGizmoAPI ,
public UE::Geometry::IDynamicMeshOperatorFactory
Remarks
Tool to create a mesh from a set of selected Spline Components
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< TWeakObjectPtr< AActor > > | ActorsWithSplines | Note: We track actors instead of the USplineComponents here because the USplineComponents objects are often deleted / swapped for identical but new objects. | |
| bool | bLostInputSpline | If failed to reacquire once, used to avoid trying to reaquire again. | |
| TArray< FTransform > | LastSplineTransforms | Track the spline component's transform (to world space) | |
| TArray< uint32 > | LastSplineVersions | Track the spline 'Version' integer, which is incremented when splines are changed. | |
| TObjectPtr< UNewMeshMaterialProperties > | MaterialProperties | ||
| TObjectPtr< UCreateMeshObjectTypeProperties > | OutputTypeProperties | ||
| TObjectPtr< UMeshOpPreviewWithBackgroundCompute > | Preview | ||
| TWeakObjectPtr< UWorld > | TargetWorld |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | EnumerateSplines
(
Func SplineComponentFunc |
Methods to access the active splines | |
| void | GenerateAsset
(
const FDynamicMeshOpResult& OpResult |
||
| FString | Override with an appropriate prefix for generated meshes. | ||
| USplineComponent * | |||
| USplineComponent * | |||
| UWorld * | |||
| FTransform3d | HandleOperatorTransform
(
const FDynamicMeshOpResult& OpResult |
API for asset generation: Override the below methods to customize common parts of spline tool asset generation: Called by GenerateAsset to set the desired asset transform and if needed transform the result to the corresponding local space | |
| int32 | NumSplines () |
||
| void | Override to respond to spline changes. | ||
| void | Helper to track the splines we are triangulating, so we can re-triangulate when they are moved or changed. | ||
| void | SetSplineActors
(
TArray< TWeakObjectPtr< AActor > > InSplineActors |
||
| void | |||
| FText | Override with an appropriate tool transaction name. |
Overridden from UInteractiveTool
| Type | Name | Description | |
|---|---|---|---|
| bool | CanAccept () |
||
| bool | HasAccept () |
||
| bool | HasCancel () |
||
| void | OnPropertyModified
(
UObject* PropertySet, |
Automatically called by UInteractiveToolPropertySet.OnModified delegate to notify Tool of child property set changes | |
| void | OnTick
(
float DeltaTime |
Allow the Tool to do any necessary processing on Tick | |
| void | Setup () |
InteractiveTool API. | |
| void | Shutdown
(
EToolShutdownType ShutdownType |
Called by ToolManager to shut down the Tool |
Overridden from IInteractiveToolEditorGizmoAPI
| Type | Name | Description | |
|---|---|---|---|
| bool | IInteractiveToolEditorGizmoAPI allow editor gizmo so users can live-edit the splines. |
Overridden from IDynamicMeshOperatorFactory
| Type | Name | Description | |
|---|---|---|---|
| TUniquePtr< UE::Geometry::FDynamicMeshOperator > | IDynamicMeshOperatorFactory API. |