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"
9#include "UObject/Object.h"
13
14#include "InteractionMechanic.generated.h"
15
19
28UCLASS(Transient, MinimalAPI)
30{
32
33public:
35
39 INTERACTIVETOOLSFRAMEWORK_API virtual void Setup(UInteractiveTool* ParentTool);
40
45
51
55 INTERACTIVETOOLSFRAMEWORK_API virtual void Tick(float DeltaTime);
56
57protected:
59
61
67
69 INTERACTIVETOOLSFRAMEWORK_API virtual bool SetToolPropertySourceEnabled(UInteractiveToolPropertySet* PropertySet, bool bEnabled);
70};
71
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition ToolContextInterfaces.h:427
Definition InteractionMechanic.h:30
TWeakObjectPtr< UInteractiveTool > ParentTool
Definition InteractionMechanic.h:58
Definition InteractiveTool.h:257
Definition InteractiveTool.h:364
Definition Object.h:95
Definition WeakObjectPtrTemplates.h:25