Files
UnrealEngine/Engine/Source/Editor/PropertyEditor/Public/IDetailPropertyChildrenCustomizationHandler.h
2025-05-18 13:04:45 +08:00

22 lines
701 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Templates/SharedPointer.h"
class IDetailChildrenBuilder;
class IPropertyHandle;
/* Customizes properties children in a detail view. */
class IDetailPropertyChildrenCustomizationHandler
{
public:
virtual ~IDetailPropertyChildrenCustomizationHandler() = default;
/* Returns true if the handler should override provided property's children. */
virtual bool ShouldCustomizeChildren(TSharedRef<IPropertyHandle> InPropertyHandle) = 0;
/* Gives a chance to customize provided property's children. */
virtual void CustomizeChildren(IDetailChildrenBuilder& ChildrenBuilder, TSharedPtr<IPropertyHandle> PropertyHandle) {}
};