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]
34 lines
961 B
C++
34 lines
961 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "UObject/Interface.h"
|
|
#include "InteractiveGizmo.h"
|
|
#include "InteractiveGizmoBuilder.generated.h"
|
|
|
|
|
|
|
|
/**
|
|
* A UInteractiveGizmoBuilder creates a new instance of an InteractiveGizmo (basically this is a Factory).
|
|
* These are registered with the InteractiveGizmoManager, which calls BuildGizmo().
|
|
* This is an abstract base class, you must subclass it in order to create your particular Gizmo instance
|
|
*/
|
|
UCLASS(Transient, Abstract)
|
|
class INTERACTIVETOOLSFRAMEWORK_API UInteractiveGizmoBuilder : public UObject
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
|
|
/**
|
|
* Create a new instance of this builder's Gizmo
|
|
* @param SceneState the current scene selection state, etc
|
|
* @return a new instance of the Gizmo, or nullptr on error/failure
|
|
*/
|
|
virtual UInteractiveGizmo* BuildGizmo(const FToolBuilderState& SceneState) const
|
|
{
|
|
unimplemented();
|
|
return nullptr;
|
|
}
|
|
}; |