engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
IToolsContextQueriesAPI类 参考abstract

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>

Public 成员函数

virtual bool ExecuteSceneSnapQuery (const FSceneSnapQueryRequest &Request, TArray< FSceneSnapQueryResult > &Results) const =0
 Try to find Snap Targets in the scene that satisfy the Snap Query. 更多...
 
virtual EToolContextCoordinateSystem GetCurrentCoordinateSystem () const =0
 Request current external coordinate-system setting
 
virtual void GetCurrentSelectionState (FToolBuilderState &StateOut) const =0
 Collect up current-selection information for the current scene state (ie what is selected in Editor, etc) 更多...
 
virtual void GetCurrentViewState (FViewCameraState &StateOut) const =0
 Request information about current view state 更多...
 
virtual UMaterialInterface * GetStandardMaterial (EStandardToolContextMaterials MaterialType) const =0
 Many tools need standard types of materials that the user should provide (eg a vertex-color material, etc) 更多...
 

详细描述

Users of the Tools Framework need to implement IToolsContextQueriesAPI to provide access to scene state information like the current UWorld, active USelections, etc.

成员函数说明

◆ ExecuteSceneSnapQuery()

virtual bool IToolsContextQueriesAPI::ExecuteSceneSnapQuery ( const FSceneSnapQueryRequest &  Request,
TArray< FSceneSnapQueryResult > &  Results 
) const
pure virtual

Try to find Snap Targets in the scene that satisfy the Snap Query.

参数
Requestsnap query configuration
Resultslist 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)

参数
StateOutthis structure is populated with available state information

◆ GetCurrentViewState()

virtual void IToolsContextQueriesAPI::GetCurrentViewState ( FViewCameraState &  StateOut) const
pure virtual

Request information about current view state

参数
StateOutthis 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)

参数
MaterialTypethe type of material being requested
返回
Instance of material to use for this purpose

该类的文档由以下文件生成: