UEdModeInteractiveToolsContext::GetRayFromMousePos

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

Windows
MacOS
Linux

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

Syntax

static FRay GetRayFromMousePos
(
    FEditorViewportClient * ViewportClient,
    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?

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