UDocumentation
UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
InteractionMechanic.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 "
InputBehaviorSet.h
"
7
#include "
InteractiveTool.h
"
8
#include "
ToolContextInterfaces.h
"
9
#include "
UObject/Object.h
"
10
#include "
UObject/ObjectMacros.h
"
11
#include "
UObject/UObjectGlobals.h
"
12
#include "
UObject/WeakObjectPtrTemplates.h
"
13
14
#include "InteractionMechanic.generated.h"
15
16
class
IToolsContextRenderAPI
;
17
class
UInteractiveTool
;
18
class
UInteractiveToolPropertySet
;
19
28
UCLASS
(
Transient
, MinimalAPI)
29
class
UInteractionMechanic
:
public
UObject
30
{
31
GENERATED_BODY
()
32
33
public
:
34
INTERACTIVETOOLSFRAMEWORK_API
UInteractionMechanic
();
35
39
INTERACTIVETOOLSFRAMEWORK_API
virtual
void
Setup(
UInteractiveTool
* ParentTool);
40
44
INTERACTIVETOOLSFRAMEWORK_API
virtual
void
Shutdown
();
45
50
INTERACTIVETOOLSFRAMEWORK_API
virtual
void
Render
(
IToolsContextRenderAPI
*
RenderAPI
);
51
55
INTERACTIVETOOLSFRAMEWORK_API
virtual
void
Tick
(
float
DeltaTime);
56
57
protected
:
58
TWeakObjectPtr<UInteractiveTool>
ParentTool
;
59
60
INTERACTIVETOOLSFRAMEWORK_API
UInteractiveTool
* GetParentTool()
const
;
61
66
INTERACTIVETOOLSFRAMEWORK_API
virtual
void
AddToolPropertySource(
UInteractiveToolPropertySet
*
PropertySet
);
67
69
INTERACTIVETOOLSFRAMEWORK_API
virtual
bool
SetToolPropertySourceEnabled(
UInteractiveToolPropertySet
*
PropertySet
,
bool
bEnabled);
70
};
71
EAnalyticsSessionShutdownType::Shutdown
@ Shutdown
CoreMinimal.h
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
EPackageAutoSaveType::Transient
@ Transient
InputBehaviorSet.h
InteractiveTool.h
EUpdateClockSource::Tick
@ Tick
ObjectMacros.h
GENERATED_BODY
#define GENERATED_BODY(...)
Definition
ObjectMacros.h:765
UCLASS
#define UCLASS(...)
Definition
ObjectMacros.h:776
Object.h
EOpenGLFormatCapabilities::Render
@ Render
ToolContextInterfaces.h
UObjectGlobals.h
WeakObjectPtrTemplates.h
IToolsContextRenderAPI
Definition
ToolContextInterfaces.h:427
UInteractionMechanic
Definition
InteractionMechanic.h:30
UInteractionMechanic::ParentTool
TWeakObjectPtr< UInteractiveTool > ParentTool
Definition
InteractionMechanic.h:58
UInteractiveToolPropertySet
Definition
InteractiveTool.h:257
UInteractiveTool
Definition
InteractiveTool.h:364
UObject
Definition
Object.h:95
TWeakObjectPtr
Definition
WeakObjectPtrTemplates.h:25
Engine
Source
Runtime
InteractiveToolsFramework
Public
InteractionMechanic.h
Generated by
1.9.8