Currently, structs that have a custom make function aren't able to use the "Set members..." node in Blueprints. For vectors and similar structs, this is slightly inconvenient since it requires using a cumbersome workaround when setting individual fields. The "Set members..." node allows for a slightly more succinct solution.
Note that we need to be careful about which structs are permitted. By default, structs that have the HasNativeMake metadata won't use this node. There are some structs that either don't have a exposed properties (eg: FSoftObjectPath), or structs that have strange creation semantics (eg: FBox2D's use of bIsValid).
The preferred solution would create a new metadata tag (eg: DirectPropertyAccess or similar) that can be added to UK2Node_SetFieldsInStruct::CanBeMade.
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-150296 in the post.
|Component||UE - Gameplay - Blueprint|
|Created||Apr 26, 2022|
|Updated||Feb 28, 2023|