Navigation
API > API/Runtime > API/Runtime/InteractiveToolsFramework
References
| Module | InteractiveToolsFramework |
| Header | /Engine/Source/Runtime/InteractiveToolsFramework/Public/InputState.h |
| Include | #include "InputState.h" |
Syntax
struct FInputRayHit
Remarks
FInputRayHit is returned by various hit-test interface functions. Generally this is intended to be returned as the result of a hit-test with a FInputDeviceRay
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bHasHitNormal | True if HitNormal was set | |
| bool | bHit | True if ray hit something, false otherwise | |
| double | HitDepth | Distance along ray at which intersection occurred | |
| int32 | HitIdentifier | Client-defined integer identifier for hit object/element/target/etc | |
| FVector | HitNormal | Normal at hit point, if available | |
| TWeakObjectPtr< UObject > | HitObject | Client-defined pointer for UObject-derived hit owners. | |
| void * | HitOwner | Client-defined pointer for hit object/element/target/etc. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FInputRayHit () |
|||
FInputRayHit
(
double HitDepthIn |
|||
FInputRayHit
(
double HitDepthIn, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | SetHitObject
(
UObject* InHitObject |
Set hit object, will also set hit owner to the same value |