UKismetSystemLibrary::IsEditorPropertyOverridden
#include "Kismet/KismetSystemLibrary.h"
Access: public
Specifiers: staticBlueprintCallableWITH_EDITOR
Description
Queries whether a named property's value on the given object overrides the value inherited from its archetype (i.e. whether ResetEditorProperty would do anything).
Caveats & Gotchas
- • Editor-only: unavailable in packaged/runtime builds.
- • Returns EEditorPropertyValueState::NotFound or AccessDenied rather than a simple bool — treat anything other than Overridden/Default as 'unknown', not as 'not overridden'.
- • This is a query only; it never modifies the object.
Signature
static EEditorPropertyValueState IsEditorPropertyOverridden(UObject* Object, const FName PropertyName) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| Object | UObject* | The object to query a property value on. | — |
| PropertyName | FName | The name of the property to query. | — |
Return Type
EEditorPropertyValueState Example
Check whether a property differs from its archetype before resetting C++
EEditorPropertyValueState State = UKismetSystemLibrary::IsEditorPropertyOverridden(SelectedActor, TEXT("MaxHealth"));
if (State == EEditorPropertyValueState::Overridden)
{
UKismetSystemLibrary::ResetEditorProperty(SelectedActor, TEXT("MaxHealth"));
} Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?