UKismetSystemLibrary::SetFieldPathPropertyByName
#include "Kismet/KismetSystemLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintCallable
Description
Sets a named TFieldPath property on Object to Value via reflection. Internal helper the Blueprint compiler generates for dynamic property-set nodes; not intended to be called directly.
Caveats & Gotchas
- • Unlike the other SetXPropertyByName helpers (e.g. SetVectorPropertyByName), this one does not null-check the FFieldPathProperty it finds before calling SetPropertyValue_InContainer — a PropertyName that doesn't resolve to a field-path property on Object's class crashes instead of silently no-oping.
- • Marked BlueprintInternalUseOnly, so it never appears in the Blueprint node picker directly.
Signature
static ENGINE_API void SetFieldPathPropertyByName(UObject* Object, FName PropertyName, const TFieldPath<FField>& Value) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| Object | UObject* | Object instance whose property will be modified. | — |
| PropertyName | FName | Name of the target property, resolved via FindFProperty against Object's class. | — |
| Value | const TFieldPath<FField>& | Field path value to assign to the property. | — |
Return Type
void Example
Set a field-path property by name from C++ C++
TFieldPath<FField> BoundField;
BoundField.Generate(TEXT("MyStructMember"), SomeOwningStruct);
UKismetSystemLibrary::SetFieldPathPropertyByName(TargetObject, FName("WatchedField"), BoundField); Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?