Module |
|
Header |
/Engine/Plugins/Experimental/MeshModelingToolset/Source/ModelingComponents/Public/ToolSceneQueriesUtil.h |
Include |
#include "ToolSceneQueriesUtil.h" |
Source |
/Engine/Plugins/Experimental/MeshModelingToolset/Source/ModelingComponents/Private/ToolSceneQueriesUtil.cpp |
namespace ToolSceneQueriesUtil
{
bool ToolSceneQueriesUtil::FindNearestVisibleObjectHit
(
UWorld * World,
FHitResult & HitResultOut,
const FVector & Start,
const FVector & End,
const TArray< UPrimitiveComponent * > * IgnoreComponents,
const TArray< UPrimitiveComponent * > * InvisibleComponentsToInclude
)
}
Find the nearest object hit by the LineTrace from Start to End that is currently visible (provides correct result in Editor)
true if a visible hit was found
Parameter |
Description |
---|---|
World |
the world to trace into |
HitResultOut |
the resulting hit, if true is returned |
Start |
start point of line |
End |
end point of line |
IgnoreComponents |
optional list of Components to ignore |