UBlueprintInstancedStructLibrary::SetInstancedStructValue
#include "Kismet/BlueprintInstancedStructLibrary.h"
Access: public
Specifiers: staticBlueprintCallableCustomThunk
Description
Overwrites the contents of an existing FInstancedStruct with a new struct value, replacing both the stored type and the data.
Caveats & Gotchas
- • As with MakeInstancedStruct, the `int32& Value` parameter is a CustomThunk placeholder — in Blueprint it's a wildcard pin accepting any struct type, not a literal int.
- • InstancedStruct is taken by reference (UPARAM(Ref)) and mutated in place, so any other Blueprint variable aliasing the same InstancedStruct sees the new value too.
- • If InstancedStruct previously held a different struct type, this frees/replaces the old instance rather than reinterpreting the memory.
Signature
static ENGINE_API void SetInstancedStructValue(UPARAM(Ref) FInstancedStruct& InstancedStruct, const int32& Value); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| InstancedStruct | FInstancedStruct& | Instanced struct to overwrite, passed by reference. | — |
| Value | const int32& | Wildcard struct pin (CustomStructureParam) — the value to copy into InstancedStruct. | — |
Return Type
void Example
Overwrite an instanced struct's value Blueprint
Set Instanced Struct Value node with the Instanced Struct input wired to a local variable, and the Value wildcard pin set to a Transform; after execution the variable holds the new Transform data. See Also
Tags
Version History
Introduced in: 5.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?