Files
UnrealEngineUWP/Engine/Source/Runtime/InteractiveToolsFramework/Private/InteractiveGizmo.cpp
michael balzer 5a20a5e3d0 Move InteractiveToolsFramework and GeometryFramework out of Experimental
#jira UETOOL-3823
#rb brooke.hubert
#preflight 6109d1e9b4288d0001acb7ef

#ROBOMERGE-SOURCE: CL 17055606 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v850-17047176)

[CL 17055619 by michael balzer in ue5-release-engine-test branch]
2021-08-04 13:59:17 -04:00

56 lines
1.1 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "InteractiveGizmo.h"
#include "InteractiveGizmoManager.h"
UInteractiveGizmo::UInteractiveGizmo()
{
// Gizmos don't get saved but this isn't necessary because they are created in the transient package...
SetFlags(RF_Transient);
InputBehaviors = NewObject<UInputBehaviorSet>(this, TEXT("GizmoInputBehaviors"));
}
void UInteractiveGizmo::Setup()
{
}
void UInteractiveGizmo::Shutdown()
{
InputBehaviors->RemoveAll();
}
void UInteractiveGizmo::Render(IToolsContextRenderAPI* RenderAPI)
{
}
void UInteractiveGizmo::DrawHUD( FCanvas* Canvas, IToolsContextRenderAPI* RenderAPI )
{
}
void UInteractiveGizmo::AddInputBehavior(UInputBehavior* Behavior)
{
InputBehaviors->Add(Behavior);
}
const UInputBehaviorSet* UInteractiveGizmo::GetInputBehaviors() const
{
return InputBehaviors;
}
void UInteractiveGizmo::Tick(float DeltaTime)
{
}
UInteractiveGizmoManager* UInteractiveGizmo::GetGizmoManager() const
{
UInteractiveGizmoManager* GizmoManager = Cast<UInteractiveGizmoManager>(GetOuter());
check(GizmoManager != nullptr);
return GizmoManager;
}