Files
UnrealEngineUWP/Engine/Source/Runtime/Experimental/InteractiveToolsFramework/Private/InteractionMechanic.cpp
Max Chen b4881d8bf8 Copying //UE4/Dev-Editor to Dev-Tools-Staging (//UE4/Dev-Tools-Staging) @11123875
#rb none
#jira none

[CL 11123880 by Max Chen in Dev-Tools-Staging branch]
2020-01-27 20:11:15 -05:00

48 lines
811 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "InteractionMechanic.h"
UInteractionMechanic::UInteractionMechanic()
{
// undo/redo doesn't work on uproperties unless UObject is transactional
//SetFlags(RF_Transactional);
}
void UInteractionMechanic::Setup(UInteractiveTool* ParentToolIn)
{
ParentTool = ParentToolIn;
}
void UInteractionMechanic::Shutdown()
{
ParentTool = nullptr;
}
void UInteractionMechanic::Render(IToolsContextRenderAPI* RenderAPI)
{
}
void UInteractionMechanic::Tick(float DeltaTime)
{
}
UInteractiveTool* UInteractionMechanic::GetParentTool() const
{
return ParentTool.Get();
}
void UInteractionMechanic::AddToolPropertySource(UInteractiveToolPropertySet* PropertySet)
{
if (ParentTool.IsValid())
{
ParentTool->AddToolPropertySource(PropertySet);
}
}