Navigation
API > API/Runtime > API/Runtime/InteractiveToolsFramework
FInputDeviceRay represents a 3D ray created based on an input device. If the device is a 2D input device like a mouse, then the ray may have an associated 2D screen position.
| Name | FInputDeviceRay |
| Type | struct |
| Header File | /Engine/Source/Runtime/InteractiveToolsFramework/Public/InputState.h |
| Include Path | #include "InputState.h" |
Syntax
USTRUCT (BlueprintType )
struct FInputDeviceRay
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| This is required for a USTRUCT | InputState.h | ||
FInputDeviceRay
(
const FRay& WorldRayIn |
InputState.h | ||
FInputDeviceRay
(
const FInputDeviceState& Input |
InputState.h | ||
FInputDeviceRay
(
const FRay& WorldRayIn, |
InputState.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bHas2D | bool | If true, WorldRay has 2D device position coordinates | InputState.h |
|
| ScreenPosition | FVector2D | 2D device position coordinates associated with the ray | InputState.h |
|
| WorldRay | FRay | 3D ray in 3D scene, in world coordinates | InputState.h |
|