Navigation
API > API/Plugins > API/Plugins/MeshModelingToolsEditorOnlyExp
Converts BSP brushes to static meshes.
Known limitations:
- Preview does not respond to property changes in the brush detail panel while the tool is running. User would need to create some event that does change the preview (such as tool property change, or selection change).
- BSP brushes with non-manifold geometry (specifically, the stair brushes) cannot be used with the "Convert, then combine" path because boolean operations do not allow them. The user gets properly notified of this if it comes up.
| Name | UBspConversionTool |
| Type | class |
| Header File | /Engine/Plugins/Experimental/MeshModelingToolsetExp/Source/MeshModelingToolsEditorOnlyExp/Public/BspConversionTool.h |
| Include Path | #include "BspConversionTool.h" |
Syntax
UCLASS ()
class UBspConversionTool : public UInteractiveTool
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UInteractiveTool → UBspConversionTool
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UBspConversionTool() |
BspConversionTool.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Settings | TObjectPtr< UBspConversionToolProperties > | BspConversionTool.h | ||
| ToolActions | TObjectPtr< UBspConversionToolActionPropertySet > | BspConversionTool.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void RequestAction
(
EBspConversionToolAction ActionType |
BspConversionTool.h | ||
virtual void SetWorld
(
UWorld* World |
BspConversionTool.h |
Overridden from UInteractiveTool
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool CanAccept() |
BspConversionTool.h | ||
virtual bool HasAccept() |
BspConversionTool.h | ||
virtual bool HasCancel() |
BspConversionTool.h | ||
| BspConversionTool.h | |||
virtual void OnTick
(
float DeltaTime |
BspConversionTool.h | ||
virtual void RegisterActions
(
FInteractiveToolActionSet& ActionSet |
BspConversionTool.h | ||
virtual void Render
(
IToolsContextRenderAPI* RenderAPI |
BspConversionTool.h | ||
virtual void Setup() |
BspConversionTool.h | ||
virtual void Shutdown
(
EToolShutdownType ShutdownType |
BspConversionTool.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ApplyAction
(
EBspConversionToolAction ActionType |
BspConversionTool.h | ||
bool AtLeastOneValidConversionTarget () |
Returns true if there is at least one valid conversion actor selected (an explicitly selected brush, or a volume if those are included). | BspConversionTool.h | |
bool CombineThenConvert
(
FText* ErrorMessage |
The easy conversion path, where we just use the existing bsp conversion function to convert everything that was selected. | BspConversionTool.h | |
| Updates the targets that the conversion functions operate on (BrushesToConvert, BrushForPivot), based on level composition, current selection, and settings. | BspConversionTool.h | ||
bool ComputeAndUpdatePreviewMesh
(
FText* ErrorMessage |
Performs conversion of BrushesToConvert and stores the result in the preview mesh. | BspConversionTool.h | |
bool ConvertThenCombine
(
FText* ErrorMessage |
The more complicated conversion path, where we convert brushes individually and use static mesh boolean operations to combine them. | BspConversionTool.h | |
bool IsValidConversionTarget
(
const ABrush* Brush |
Determines whether the passed in pointer is a valid convertible brush. | BspConversionTool.h | |
void OnEditorActorMoved
(
AActor* InActor |
Actor movements include any transform changes, and change both the preview and the cached brushes. | BspConversionTool.h | |
void OnEditorLevelActorListChanged () |
Changes to the actor list may change the order of brush composition, or add or remove implicitly included subtractive brushes. | BspConversionTool.h | |
void OnEditorSelectionChanged
(
UObject* NewSelection |
This is the primary event we'll be responding to. | BspConversionTool.h |