RealDocs

UActorComponent::RemoveUCSModifiedProperties

function Engine Since 4.0
#include "Components/ActorComponent.h"
Access: public Specifiers: ENGINE_API

Description

Removes specific properties from the component's UCS-modified property list, indicating those properties should no longer be treated as UCS-overridden.

Caveats & Gotchas

  • Removing a property from the UCS-modified list allows it to be overwritten by subsequent Blueprint instance data or archetype reloads — use with care in live construction script pipelines.
  • Properties not present in the current UCS-modified set are silently ignored — no error is raised for entries that do not exist.

Signature

ENGINE_API void RemoveUCSModifiedProperties(const TArray<FProperty*>& Properties);

Parameters

Name Type Description Default
Properties const TArray<FProperty*>& The list of properties to remove from this component's UCS-modified property tracking set.

Return Type

void

Example

Strip specific properties from UCS tracking during reinstancing C++
#if WITH_EDITOR
// Called during component reinstancing to unpin properties that are no longer UCS-driven
void UnpinProperties(UActorComponent* Comp, TArray<FProperty*>& ToRemove)
{
	Comp->RemoveUCSModifiedProperties(ToRemove);
}
#endif

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.