![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <ToolContextInterfaces.h>
Public Member Functions | |
| virtual | ~IToolsContextQueriesAPI () |
| virtual UWorld * | GetCurrentEditingWorld () const =0 |
| virtual void | GetCurrentSelectionState (FToolBuilderState &StateOut) const =0 |
| virtual void | GetCurrentViewState (FViewCameraState &StateOut) const =0 |
| virtual EToolContextCoordinateSystem | GetCurrentCoordinateSystem () const |
| virtual EToolContextTransformGizmoMode | GetCurrentTransformGizmoMode () const |
| virtual FToolContextSnappingConfiguration | GetCurrentSnappingSettings () const |
| virtual UMaterialInterface * | GetStandardMaterial (EStandardToolContextMaterials MaterialType) const =0 |
| virtual FViewport * | GetHoveredViewport () const =0 |
| virtual FViewport * | GetFocusedViewport () const =0 |
Users of the Tools Framework need to implement IToolsContextQueriesAPI to provide access to scene state information like the current UWorld, active USelections, etc.
|
inlinevirtual |
|
inlinevirtual |
Request current external coordinate-system setting. Defaults to World coordinates.
|
pure virtual |
Collect up current-selection information for the current scene state (ie what is selected in Editor, etc)
| StateOut | this structure is populated with available state information |
|
inlinevirtual |
Request current external snapping settings. Defaults to no snapping.
|
inlinevirtual |
Request current external Gizmo Mode setting. Defaulting this to Combined gizmo as this was the default behavior before UE-5.2.
|
pure virtual |
Request information about current view state
| StateOut | this structure is populated with available state information |
|
pure virtual |
Many tools need standard types of materials that the user should provide (eg a vertex-color material, etc)
| MaterialType | the type of material being requested |