UKismetArrayLibrary::SetArrayPropertyByName
#include "Kismet/KismetArrayLibrary.h"
Access: public
Specifiers: staticBlueprintCallableCustomThunk
Description
Assigns a value to a named array property on an object using reflection.
Caveats & Gotchas
- • Marked BlueprintInternalUseOnly and has no Category=, so it never appears in the Blueprint node palette — it backs the generic 'Set Members in ...' / property-setter nodes that reference an array property by name.
- • Uses MARK_PROPERTY_DIRTY internally, which flags the property for replication push-model tracking — calling it on a replicated array property has networking implications beyond a plain local assignment.
- • PropertyName must exactly match a UPROPERTY on Object; a typo or renamed property fails silently at the reflection lookup rather than producing a compile error.
Signature
static void SetArrayPropertyByName(UObject* Object, FName PropertyName, const TArray<int32>& Value); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| Object | UObject* | The object whose array property should be set. | — |
| PropertyName | FName | The name of the array UPROPERTY on Object to assign to. | — |
| Value | const TArray<int32>& | The array value to assign, resolved by reflection to the property's real element type. | — |
Return Type
void Example
Not intended for direct C++ or Blueprint use C++
// SetArrayPropertyByName exists to back Blueprint's reflection-based property setters.
// In C++, assign the UPROPERTY directly instead:
MyObject->MyArrayProperty = NewValues; See Also
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?