Navigation
API > API/Plugins > API/Plugins/ModelingComponents
Description
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.
| Name | ToolSetupUtil::GetDefaultWorldReferenceFrame |
| Type | function |
| Header File | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/ToolSetupUtil.h |
| Include Path | #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
)
}
Parameters
| Name | Remarks |
|---|---|
| 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 |