EM_Task/UnrealEd/Classes/Factories/SkeletonFactory.h
Boshuang Zhao 5144a49c9b add
2026-02-13 16:18:33 +08:00

37 lines
889 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
/**
*
*/
#pragma once
#include "CoreMinimal.h"
#include "UObject/ObjectMacros.h"
#include "Factories/Factory.h"
#include "SkeletonFactory.generated.h"
struct FAssetData;
class SWindow;
UCLASS(HideCategories = Object, MinimalAPI)
class USkeletonFactory: public UFactory
{
GENERATED_UCLASS_BODY()
// The skeletal mesh with which to initialize this skeleton.
UPROPERTY()
class USkeletalMesh* TargetSkeletalMesh;
//~ Begin UFactory Interface
virtual bool ConfigureProperties() override;
virtual UObject* FactoryCreateNew(UClass* Class, UObject* InParent, FName Name, EObjectFlags Flags, UObject* Context, FFeedbackContext* Warn) override;
//~ Begin UFactory Interface
private:
void OnTargetSkeletalMeshSelected(const FAssetData& SelectedAsset);
private:
TSharedPtr<SWindow> PickerWindow;
};