Navigation
API > API/Runtime > API/Runtime/InteractiveToolsFramework > API/Runtime/InteractiveToolsFramework/BaseGizmos
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UGizmoComponentHitTarget
References
| Module | InteractiveToolsFramework |
| Header | /Engine/Source/Runtime/InteractiveToolsFramework/Public/BaseGizmos/HitTargets.h |
| Include | #include "BaseGizmos/HitTargets.h" |
Syntax
class UGizmoComponentHitTarget :
public UObject,
public IGizmoClickTarget
Remarks
UGizmoComponentHitTarget is an IGizmoClickTarget implementation that hit-tests a UPrimitiveComponent
Variables
| Type | Name | Description | |
|---|---|---|---|
| TObjectPtr< UPrimitiveComponent > | Component | Component->LineTraceComponent() is called to determine if the target is hit | |
| TFunction< bool(const FInputDeviceRay &)> | Condition | If set, this condition is checked before performing the hit test. | |
| TFunction< void(bool)> | UpdateHoverFunction | This function is called to update hover state of the target | |
| TFunction< void(bool)> | UpdateInteractingFunction | This function is called to update interacting state of the target |
Functions
| Type | Name | Description | |
|---|---|---|---|
| UGizmoComponentHitTarget * | Construct
(
UPrimitiveComponent* Component, |
Overridden from IGizmoClickTarget
| Type | Name | Description | |
|---|---|---|---|
| FInputRayHit | IsHit
(
const FInputDeviceRay& ClickPos |
||
| void | UpdateHoverState
(
bool bHovering |
Updates the hover state indicating whether the input device is currently hovering over the Standard gizmo. | |
| void | UpdateInteractingState
(
bool bInteracting |
Updates the interacting state indicating when interaction with the Standard gizmo is actively occurring, typically upon the input device clicking and dragging the Standard gizmo. |