UBlueprintInstancedStructLibrary::MakeInstancedStruct
#include "Kismet/BlueprintInstancedStructLibrary.h"
Access: public
Specifiers: staticBlueprintCallableCustomThunk
Description
Creates a new FInstancedStruct that holds a copy of the given struct value, capturing its UScriptStruct type along with the data.
Caveats & Gotchas
- • The `int32& Value` parameter is a placeholder for the CustomThunk mechanism — in Blueprint this pin accepts any struct type via CustomStructureParam; calling the declared C++ signature directly does not do what the name implies.
- • From C++, don't call this function — construct an FInstancedStruct directly instead, e.g. FInstancedStruct::Make(MyStructValue).
- • This node is marked BlueprintInternalUseOnly, meaning it's meant to back the "Make Instanced Struct" K2Node rather than be called generically.
Signature
static ENGINE_API FInstancedStruct MakeInstancedStruct(const int32& Value); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| Value | const int32& | Wildcard struct pin in Blueprint (CustomStructureParam) — the source value to wrap in a new FInstancedStruct. | — |
Return Type
FInstancedStruct Example
Wrap a struct value from Blueprint Blueprint
Make Instanced Struct node with the input pin set to a Vector wildcard, wired from a Break/Make Vector value; output pin returns an Instanced Struct containing the FVector data and its UScriptStruct type. See Also
Tags
Version History
Introduced in: 5.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?