Files
UnrealEngineUWP/Engine/Source/Runtime/InteractiveToolsFramework/Public/InteractiveToolObjects.h
michael balzer 2b10993563 Move InteractiveToolsFramework and GeometryFramework out of Experimental
#jira UETOOL-3823
#rb brooke.hubert
#preflight 6109d1e9b4288d0001acb7ef

[CL 17055606 by michael balzer in ue5-main branch]
2021-08-04 13:58:55 -04:00

57 lines
1.3 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "UObject/Interface.h"
#include "GameFramework/Actor.h"
#include "InteractiveToolObjects.generated.h"
/**
* AInternalToolFrameworkActor is a base class for internal Actors that the
* ToolsFramework may spawn (for gizmos, mesh previews, etc). These Actors
* may need special-case handling, for example to prevent the user from
* selecting and deleting them.
*/
UCLASS(Transient)
class INTERACTIVETOOLSFRAMEWORK_API AInternalToolFrameworkActor : public AActor
{
GENERATED_BODY()
private:
public:
/** Controls whether this InternalToolFrameworkActor can be selected in the Editor. */
UPROPERTY()
bool bIsSelectableInEditor = false;
#if WITH_EDITOR
virtual bool IsSelectable() const override
{
return bIsSelectableInEditor;
}
#endif
};
// UInterface for IToolFrameworkComponent
UINTERFACE(MinimalAPI)
class UToolFrameworkComponent : public UInterface
{
GENERATED_BODY()
};
// IToolFrameworkComponent is an interface we can attach to custom Components used in the Tools framework.
// Currently this interface is only used to identify such Components (to prevent certain Actors from being deleted)
class IToolFrameworkComponent
{
GENERATED_BODY()
public:
};