Users of the Tools Framework need to implement IToolsContextQueriesAPI to provide access to scene state information like the current UWorld, active USelections, etc.
更多...
#include <ToolContextInterfaces.h>
Users of the Tools Framework need to implement IToolsContextQueriesAPI to provide access to scene state information like the current UWorld, active USelections, etc.
◆ ExecuteSceneSnapQuery()
Try to find Snap Targets in the scene that satisfy the Snap Query.
- 参数
-
| Request | snap query configuration |
| Results | list of potential snap results |
- 返回
- true if any valid snap target was found
- 警告
- implementations are not required (and may not be able) to support snapping
◆ GetCurrentSelectionState()
| virtual void IToolsContextQueriesAPI::GetCurrentSelectionState |
( |
FToolBuilderState & |
StateOut | ) |
const |
|
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 |
◆ GetCurrentViewState()
| virtual void IToolsContextQueriesAPI::GetCurrentViewState |
( |
FViewCameraState & |
StateOut | ) |
const |
|
pure virtual |
Request information about current view state
- 参数
-
| StateOut | this structure is populated with available state information |
◆ GetStandardMaterial()
| virtual UMaterialInterface * IToolsContextQueriesAPI::GetStandardMaterial |
( |
EStandardToolContextMaterials |
MaterialType | ) |
const |
|
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 |
- 返回
- Instance of material to use for this purpose
该类的文档由以下文件生成: