UDocumentation
UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
GizmoElementHitTargets.h
Go to the documentation of this file.
1
// Copyright Epic Games, Inc. All Rights Reserved.
2
3
#pragma once
4
5
#include "
CoreMinimal.h
"
6
#include "
BaseGizmos/GizmoInterfaces.h
"
7
#include "
BaseGizmos/GizmoViewContext.h
"
8
#include "
BaseGizmos/HitTargets.h
"
9
#include "
BaseGizmos/TransformProxy.h
"
10
#include "GizmoElementHitTargets.generated.h"
11
12
class
UGizmoElementBase
;
13
20
UCLASS
(MinimalAPI)
21
class
UGizmoElementHitTarget
:
public
UObject
,
public
IGizmoClickTarget
22
{
23
GENERATED_BODY
()
24
public
:
25
29
UPROPERTY
()
30
TObjectPtr
<
UGizmoElementBase
> GizmoElement;
31
32
UPROPERTY
()
33
TObjectPtr
<
UGizmoViewContext
> GizmoViewContext;
34
35
UPROPERTY
()
36
TObjectPtr
<
UTransformProxy
> GizmoTransformProxy;
37
44
TFunction
<
bool
(const
FInputDeviceRay
&)> Condition =
nullptr
;
45
46
public
:
47
INTERACTIVETOOLSFRAMEWORK_API
virtual
FInputRayHit
IsHit(const
FInputDeviceRay
&
ClickPos
) const;
48
49
INTERACTIVETOOLSFRAMEWORK_API
virtual
void
UpdateHoverState(
bool
bHovering)
override
;
50
51
INTERACTIVETOOLSFRAMEWORK_API
virtual
void
UpdateInteractingState(
bool
bInteracting
)
override
;
52
53
INTERACTIVETOOLSFRAMEWORK_API
virtual
void
UpdateSelectedState(
bool
bInSelected
)
override
;
54
55
INTERACTIVETOOLSFRAMEWORK_API
virtual
void
UpdateSubdueState(
bool
bSubdued
)
override
;
56
57
public
:
58
static
INTERACTIVETOOLSFRAMEWORK_API
UGizmoElementHitTarget
*
Construct
(
59
UGizmoElementBase
*
InGizmoElement
,
60
UGizmoViewContext
*
InGizmoViewContext
,
61
UObject
*
Outer
= (
UObject
*)
GetTransientPackage
());
62
};
63
74
UCLASS
(MinimalAPI)
75
class
UGizmoElementHitMultiTarget
:
public
UObject
,
public
IGizmoClickMultiTarget
76
{
77
GENERATED_BODY
()
78
public
:
79
83
UPROPERTY
()
84
TObjectPtr
<
UGizmoElementBase
> GizmoElement;
85
86
UPROPERTY
()
87
TObjectPtr
<
UGizmoViewContext
> GizmoViewContext;
88
89
UPROPERTY
()
90
TObjectPtr
<
UTransformProxy
> GizmoTransformProxy;
91
98
TFunction
<
bool
(const
FInputDeviceRay
&)> Condition =
nullptr
;
99
100
public
:
101
INTERACTIVETOOLSFRAMEWORK_API
virtual
FInputRayHit
IsHit(const
FInputDeviceRay
&
ClickPos
) const
override
;
102
103
INTERACTIVETOOLSFRAMEWORK_API
virtual
void
UpdateHoverState(
bool
bHovering,
uint32
PartIdentifier
)
override
;
104
105
INTERACTIVETOOLSFRAMEWORK_API
virtual
void
UpdateHoverState(
bool
bHovering,
uint32
PartIdentifier
,
bool
bInAllowMultipleElements
);
106
107
INTERACTIVETOOLSFRAMEWORK_API
virtual
void
UpdateInteractingState(
bool
bInteracting
,
uint32
PartIdentifier
)
override
;
108
109
INTERACTIVETOOLSFRAMEWORK_API
virtual
void
UpdateInteractingState(
bool
bInteracting
,
uint32
PartIdentifier
,
bool
bInAllowMultipleElements
);
110
111
INTERACTIVETOOLSFRAMEWORK_API
virtual
void
UpdateSelectedState(
bool
bInSelected
,
uint32
PartIdentifier
)
override
;
112
113
INTERACTIVETOOLSFRAMEWORK_API
virtual
void
UpdateSelectedState(
bool
bInSelected
,
uint32
PartIdentifier
,
bool
bInAllowMultipleElements
);
114
115
INTERACTIVETOOLSFRAMEWORK_API
virtual
void
UpdateSubdueState(
bool
bInSubdued
,
uint32
PartIdentifier
)
override
;
116
117
INTERACTIVETOOLSFRAMEWORK_API
virtual
void
UpdateSubdueState(
bool
bInSubdued
,
uint32
PartIdentifier
,
bool
bInAllowMultipleElements
);
118
119
INTERACTIVETOOLSFRAMEWORK_API
virtual
void
UpdateHittableState(
bool
bHittable
,
uint32
PartIdentifier
)
override
;
120
121
INTERACTIVETOOLSFRAMEWORK_API
virtual
void
UpdateHittableState(
bool
bHittable
,
uint32
PartIdentifier
,
bool
bInAllowMultipleElements
);
122
123
public
:
124
static
INTERACTIVETOOLSFRAMEWORK_API
UGizmoElementHitMultiTarget
*
Construct
(
125
UGizmoElementBase
*
InGizmoElement
,
126
UGizmoViewContext
*
InGizmoViewContext
,
127
UObject
*
Outer
= (
UObject
*)
GetTransientPackage
());
128
129
};
ESphericalLimitType::Outer
@ Outer
CoreMinimal.h
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
GizmoInterfaces.h
GizmoViewContext.h
HitTargets.h
GetTransientPackage
UPackage * GetTransientPackage()
Definition
Obj.cpp:5819
UPROPERTY
#define UPROPERTY(...)
UObject definition macros.
Definition
ObjectMacros.h:744
GENERATED_BODY
#define GENERATED_BODY(...)
Definition
ObjectMacros.h:765
UCLASS
#define UCLASS(...)
Definition
ObjectMacros.h:776
Construct
void Construct(const FArguments &InArgs)
TransformProxy.h
uint32
uint32_t uint32
Definition
binka_ue_file_header.h:6
IGizmoClickMultiTarget
Definition
GizmoInterfaces.h:161
IGizmoClickTarget
Definition
GizmoInterfaces.h:108
TFunction
Definition
AndroidPlatformMisc.h:14
UGizmoElementBase
Definition
GizmoElementBase.h:26
UGizmoElementBase::PartIdentifier
uint32 PartIdentifier
Definition
GizmoElementBase.h:507
UGizmoElementHitMultiTarget
Definition
GizmoElementHitTargets.h:76
UGizmoElementHitTarget
Definition
GizmoElementHitTargets.h:22
UGizmoViewContext
Definition
GizmoViewContext.h:20
UObject
Definition
Object.h:95
UTransformProxy
Definition
TransformProxy.h:40
FInputDeviceRay
Definition
InputState.h:367
FInputRayHit
Definition
InputState.h:52
TObjectPtr
Definition
ObjectPtr.h:488
Engine
Source
Runtime
InteractiveToolsFramework
Public
BaseGizmos
GizmoElementHitTargets.h
Generated by
1.9.8