You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
- 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]
27 lines
684 B
C++
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);
|
|
}
|
|
} |