Choose your operating system:
Windows
macOS
Linux
| UObjectBase
|
Module |
|
Header |
/Engine/Plugins/Experimental/MeshModelingToolsetExp/Source/MeshModelingToolsEditorOnly/Public/BspConversionTool.h |
Include |
#include "BspConversionTool.h" |
UCLASS()
class UBspConversionTool : public UInteractiveTool
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 | Description | ||
---|---|---|---|
|
bCanAccept |
||
|
BrushesToConvert |
||
|
BrushesToDelete |
||
|
ABrush * |
BrushForPivot |
|
|
CachedBrushes |
||
|
PendingAction |
||
|
TObjectPtr< UPr... |
PreviewMesh |
|
|
TObjectPtr< UBs... |
Settings |
|
|
UWorld * |
TargetWorld |
|
|
TObjectPtr< UBs... |
ToolActions |
Name | Description | |
---|---|---|
|
UBspConversionTool() |
Name | Description | ||
---|---|---|---|
|
ApplyAction ( |
||
|
AtLeastOneValidConversionTarget() |
Returns true if there is at least one valid conversion actor selected (an explicitly selected brush, or a volume if those are included). |
|
|
CombineThenConvert ( |
The easy conversion path, where we just use the existing bsp conversion function to convert everything that was selected. |
|
|
CompareAndUpdateConversionTargets() |
Updates the targets that the conversion functions operate on (BrushesToConvert, BrushForPivot), based on level composition, current selection, and settings. |
|
|
ComputeAndUpdatePreviewMesh ( |
Performs conversion of BrushesToConvert and stores the result in the preview mesh. |
|
|
ConvertThenCombine ( |
The more complicated conversion path, where we convert brushes individually and use static mesh boolean operations to combine them. |
|
|
IsValidConversionTarget ( |
Determines whether the passed in pointer is a valid convertible brush. |
|
|
OnEditorActorMoved ( |
Actor movements include any transform changes, and change both the preview and the cached brushes. |
|
|
OnEditorLevelActorListChanged() |
Changes to the actor list may change the order of brush composition, or add or remove implicitly included subtractive brushes. |
|
|
OnEditorSelectionChanged ( |
This is the primary event we'll be responding to. |
|
|
RequestAction ( |
||
|
SetWorld ( |
Name | Description | ||
---|---|---|---|
|
CanAccept() |
||
|
HasAccept() |
||
|
HasCancel() |
||
|
OnPropertyModified |
Automatically called by UInteractiveToolPropertySet.OnModified delegate to notify Tool of child property set changes |
|
|
OnTick ( |
Action support/system |
|
|
RegisterActions ( |
Override this function to register the set of Actions this Tool supports, using FInteractiveToolActionSet::RegisterAction. |
|
|
Render ( |
Allow the Tool to do any custom drawing (ie via PDI/RHI) |
|
|
Setup() |
Called by ToolManager to initialize the Tool after ToolBuilder::BuildTool() has been called |
|
|
Shutdown ( |
Called by ToolManager to shut down the Tool |