UPreviewMesh::FindRayIntersection

Find ray intersection with the preview mesh.

Windows
MacOS
Linux

Warnings

  • returns false if preview is not visible

References

Module

ModelingComponents

Header

/Engine/Plugins/Experimental/MeshModelingToolset/Source/ModelingComponents/Public/PreviewMesh.h

Include

#include "PreviewMesh.h"

Source

/Engine/Plugins/Experimental/MeshModelingToolset/Source/ModelingComponents/Private/PreviewMesh.cpp

Syntax

bool FindRayIntersection
(
    const FRay3d & WorldRay,
    FHitResult & HitOut
)

Remarks

Find ray intersection with the preview mesh. Requires that bBuildSpatialDataStructure = true

returns false if preview is not visible

Returns

true if ray intersections mesh

Parameters

Parameter

Description

WorldRay

ray in world space

HitOut

output hit data (only certain members are initialized, see implementation)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss