UActorComponent::GetUCSModifiedProperties
#include "Components/ActorComponent.h"
Access: public
Specifiers: ENGINE_APIconst
Description
Populates the provided set with pointers to every FProperty that has been modified by the User Construction Script on this component.
Caveats & Gotchas
- • The set is populated by reference, not returned — the caller is responsible for passing a valid TSet and the function will add to (not replace) any existing entries.
- • The list is only meaningful if DetermineUCSModifiedProperties() has been called first. An empty set does not guarantee no UCS modifications; it may just mean the list has not been computed yet.
- • FProperty pointers are owned by the class's UClass — do not attempt to delete or modify them.
Signature
ENGINE_API void GetUCSModifiedProperties(TSet<const FProperty*>& ModifiedProperties) const; Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| ModifiedProperties | TSet<const FProperty*>& | Output set populated with the FProperty objects for each property that the UCS has modified on this component. | — |
Return Type
void Example
Inspect which properties a UCS has changed C++
#if WITH_EDITOR
void LogUCSModifiedProps(UActorComponent* Comp)
{
Comp->DetermineUCSModifiedProperties();
TSet<const FProperty*> Props;
Comp->GetUCSModifiedProperties(Props);
for (const FProperty* Prop : Props)
{
UE_LOG(LogTemp, Log, TEXT("UCS modified: %s"), *Prop->GetName());
}
}
#endif See Also
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?