Files
UnrealEngine/Engine/Source/Runtime/InteractiveToolsFramework/Public/TargetInterfaces/StaticMeshBackedTarget.h
2025-05-18 13:04:45 +08:00

37 lines
751 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Engine/EngineTypes.h"
#include "Engine/StaticMesh.h"
#include "UObject/Interface.h"
#include "TargetInterfaces/AssetBackedTarget.h"
#include "StaticMeshBackedTarget.generated.h"
UINTERFACE(MinimalAPI)
class UStaticMeshBackedTarget : public UAssetBackedTarget
{
GENERATED_BODY()
};
class IStaticMeshBackedTarget : public IAssetBackedTarget
{
GENERATED_BODY()
public:
/**
* @return the underlying source asset for this Target.
*/
virtual UObject* GetSourceData() const override
{
return GetStaticMesh();
}
/**
* @return the underlying source StaticMesh asset for this Target
*/
virtual UStaticMesh* GetStaticMesh() const = 0;
};