StateKeyValueReferenceCustom.h
1 // Copyright (C) 2025 Radaway Software LLC. All Rights Reserved. 2 3 #pragma once 4 5 #include "CoreMinimal.h" 6 #include "IPropertyTypeCustomization.h" 7 8 /** 9 * Provides customizations from the RpaiType FStateKeyValueReference when viewed in all details. 10 * Primarily, it just inlines the properties to look nice. 11 */ 12 class REASONABLEPLANNINGAIEDITOR_API StateKeyValueReferenceCustom : public IPropertyTypeCustomization 13 { 14 public: 15 virtual void CustomizeHeader(TSharedRef<IPropertyHandle> StructPropertyHandle, FDetailWidgetRow& HeaderRow, IPropertyTypeCustomizationUtils& StructCustomizationUtils) override; 16 virtual void CustomizeChildren(TSharedRef<IPropertyHandle> StructPropertyHandle, IDetailChildrenBuilder& StructBuilder, IPropertyTypeCustomizationUtils& StructCustomizationUtils) override; 17 18 static TSharedRef<IPropertyTypeCustomization> MakeInstance(); 19 };