UEditorInteractiveToolsContext::GetRayFromMousePos

Utility function to convert viewport x/y from mouse events (and others?) into scene ray.

Unreal Engine C++ API Reference > Editor > EditorInteractiveToolsFramework > UEditorInteractiveToolsContext

References

   
Module EditorInteractiveToolsFramework
Header /Engine/Source/Editor/Experimental/EditorInteractiveToolsFramework/Public/EdModeInteractiveToolsContext.h
Include #include "EdModeInteractiveToolsContext.h"
Source /Engine/Source/Editor/Experimental/EditorInteractiveToolsFramework/Private/EdModeInteractiveToolsContext.cpp
static FRay GetRayFromMousePos
(
    [FEditorViewportClient](API\Editor\UnrealEd\FEditorViewportClient) * ViewportClient,
    [FViewport](API\Runtime\Engine\FViewport) * Viewport,
    int MouseX,
    int MouseY
)

Remarks

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?


Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library