Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/UEditorInteractiveToolsContext
Description
Utility function to convert viewport x/y from mouse events (and others?) into scene ray. Copy-pasted from other Editor code, seems kind of expensive?
| Name | GetRayFromMousePos |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Public/Tools/EdModeInteractiveToolsContext.h |
| Include Path | #include "Tools/EdModeInteractiveToolsContext.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/Tools/EdModeInteractiveToolsContext.cpp |
static FRay GetRayFromMousePos
(
FEditorViewportClient * ViewportClient,
FViewport * Viewport,
int MouseX,
int MouseY
)