Files
UnrealEngineUWP/Engine/Source/Editor/PropertyEditor/Private/PropertyEditorEditConstPolicy.cpp
patrick enfedaque acc5843091 FPropertyNode Editor Archetype/EditConst Policy
- Allow registration/unregistration of IArchetypePolicy/IEditConstPolicy which allow outside systems to provide policies
- Update some details customizations to make usage of new PropertyEditorPolicy::GetArchetype/IsPropertyEditConst which respects registered policies

#rb logan.buchy, Phillip.Kavan, Francis.Hurteau
#rnx

[CL 31467957 by patrick enfedaque in ue5-main branch]
2024-02-14 08:11:39 -05:00

27 lines
684 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "PropertyEditorEditConstPolicy.h"
#include "PropertyNode.h"
namespace PropertyEditorPolicy
{
void RegisterEditConstPolicy(IEditConstPolicy* Policy)
{
FPropertyNode::RegisterEditConstPolicy(Policy);
}
void UnregisterEditConstPolicy(IEditConstPolicy* Policy)
{
FPropertyNode::UnregisterEditConstPolicy(Policy);
}
bool IsPropertyEditConst(const FEditPropertyChain& PropertyChain, UObject* Object)
{
return FPropertyNode::IsPropertyEditConst(PropertyChain, Object);
}
bool IsPropertyEditConst(const FProperty* Property, UObject* Object)
{
return FPropertyNode::IsPropertyEditConst(Property, Object);
}
}