27 lines
967 B
C++
27 lines
967 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "IPropertyTypeCustomization.h"
|
|
|
|
class IPropertyHandle;
|
|
struct FAssetData;
|
|
|
|
class FCustomizableObjectIdentifierCustomization : public IPropertyTypeCustomization
|
|
{
|
|
public:
|
|
static TSharedRef<IPropertyTypeCustomization> MakeInstance();
|
|
|
|
/** IPropertyTypeCustomization interface */
|
|
virtual void CustomizeHeader(TSharedRef<class IPropertyHandle> StructPropertyHandle, class FDetailWidgetRow& HeaderRow, IPropertyTypeCustomizationUtils& StructCustomizationUtils) override;
|
|
virtual void CustomizeChildren(TSharedRef<class IPropertyHandle> StructPropertyHandle, class IDetailChildrenBuilder& StructBuilder, IPropertyTypeCustomizationUtils& StructCustomizationUtils) override;
|
|
|
|
private:
|
|
TSharedPtr<IPropertyHandle> GuidUPropertyHandle;
|
|
class UCustomizableObject* SelectedCustomizableObject = nullptr;
|
|
|
|
FString OnGetObjectPath() const;
|
|
void OnEventChanged(const FAssetData& InAssetData);
|
|
};
|
|
|