Navigation
API > API/Plugins > API/Plugins/MeshModelingToolsEditorOnlyExp
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UInteractiveTool
- USingleSelectionTool
- UMeshSurfacePointTool
- UBaseBrushTool
- UDynamicMeshBrushTool
- UShapeSprayTool
References
| Module | MeshModelingToolsEditorOnlyExp |
| Header | /Engine/Plugins/Experimental/MeshModelingToolsetExp/Source/MeshModelingToolsEditorOnlyExp/Public/ShapeSprayTool.h |
| Include | #include "ShapeSprayTool.h" |
Syntax
UCLASS&40;Transient&41;
class UShapeSprayTool : public UDynamicMeshBrushTool
Remarks
UShapeSprayTool is a brush-based tool that generates random points on the target surface within the brush radius, and then creates small meshes at those points. The accumulated meshes are appended and can be emitted as a new StaticMeshComponent on Accept.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TObjectPtr< UDynamicMeshComponent > | AccumMeshComponent | Small meshes are accumulated here | |
| FRandomStream | Random | ||
| TObjectPtr< UShapeSprayToolProperties > | Settings | ||
| UE::Geometry::FDynamicMesh3 | ShapeMesh | ||
| UWorld * | TargetWorld | ||
| TArray< int > | VertexMap |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | EmitResult () |
||
| void | |||
| void | SplatShape
(
const UE::Geometry::FFrame3d& LocalFrame, |
||
| void |
Overridden from UMeshSurfacePointTool
| Type | Name | Description | |
|---|---|---|---|
| void | OnBeginDrag
(
const FRay& Ray |
UMeshSurfacePointTool API. | |
| void | OnEndDrag
(
const FRay& Ray |
This function is called when the user releases the button driving a click-drag-release interaction | |
| void | OnUpdateDrag
(
const FRay& Ray |
This function is called each frame that the user is in a click-drag-release interaction |
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 | Setup () |
UInteractiveTool. | |
| void | Shutdown
(
EToolShutdownType ShutdownType |
Called by ToolManager to shut down the Tool |