Navigation
API > API/Runtime > API/Runtime/InteractiveToolsFramework
UGizmoComponentHitTarget is an IGizmoClickTarget implementation that hit-tests a UPrimitiveComponent
| Name | UGizmoComponentHitTarget |
| Type | class |
| Header File | /Engine/Source/Runtime/InteractiveToolsFramework/Public/BaseGizmos/HitTargets.h |
| Include Path | #include "BaseGizmos/HitTargets.h" |
Syntax
UCLASS (MinimalAPI)
class UGizmoComponentHitTarget :
public UObject ,
public IGizmoClickTarget
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UGizmoComponentHitTarget
Implements Interfaces
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Component | TObjectPtr< UPrimitiveComponent > | Component->LineTraceComponent() is called to determine if the target is hit | BaseGizmos/HitTargets.h | |
| Condition | TFunction< bool(const FInputDeviceRay &)> | If set, this condition is checked before performing the hit test. | BaseGizmos/HitTargets.h | |
| UpdateHoverFunction | TFunction< void(bool)> | This function is called to update hover state of the target | BaseGizmos/HitTargets.h | |
| UpdateInteractingFunction | TFunction< void(bool)> | This function is called to update interacting state of the target | BaseGizmos/HitTargets.h |
Functions
Public
Overridden from IGizmoClickTarget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FInputRayHit IsHit
(
const FInputDeviceRay& ClickPos |
BaseGizmos/HitTargets.h | ||
virtual void UpdateHoverState
(
bool bHovering |
Updates the hover state indicating whether the input device is currently hovering over the Standard gizmo. | BaseGizmos/HitTargets.h | |
virtual 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. | BaseGizmos/HitTargets.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static UGizmoComponentHitTarget * Construct
(
UPrimitiveComponent* Component, |
BaseGizmos/HitTargets.h |