You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#jira UETOOL-3823 #rb brooke.hubert #preflight 6109d1e9b4288d0001acb7ef [CL 17055606 by michael balzer in ue5-main branch]
57 lines
1.0 KiB
C++
57 lines
1.0 KiB
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);
|
|
}
|
|
}
|
|
|
|
bool UInteractionMechanic::SetToolPropertySourceEnabled(UInteractiveToolPropertySet* PropertySet, bool bEnabled)
|
|
{
|
|
if (ParentTool.IsValid())
|
|
{
|
|
return ParentTool->SetToolPropertySourceEnabled(PropertySet, bEnabled);
|
|
}
|
|
return false;
|
|
} |