Navigation
API > API/Plugins > API/Plugins/ModelingComponents
References
| Module | ModelingComponents |
| Header | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/ToolSetupUtil.h |
| Include | #include "ToolSetupUtil.h" |
| Source | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Private/ToolSetupUtil.cpp |
namespace ToolSetupUtil
{
UE::Geometry::FFrame3d ToolSetupUtil::GetDefaultWorldReferenceFrame
(
UInteractiveToolManager * ToolManager,
UE::Geometry::FQuaterniond DefaultOrientation,
double NoSelectionPlacementDistance
)
}
Remarks
Use the current selection, if any, or otherwise the camera position to find a relevant reference frame for creating new objects. Note: Should be called in tool setup to access the active geometry element selection (if any) before it is cleared by the tool.
Parameters
| Name | Description |
|---|---|
| DefaultOrientation | Orientation to use if there is no geometry element selection providing a natural orientation |
| DefaultPlacementDistance | Distance from camera to place the frame if there is no selection and a raycast doesn't hit anything |