Description

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.

Current:

[Link Removed]

Proposed:
[Link Removed]

Steps to Reproduce
  • Create a new vector variable in a Blueprint.
  • Drag the variable to the editor window and create a getter node.
  • Drag a link from the vector variable pin.
  • Search for "Set members..." in the Action menu.
  • Observe that no option exists.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-150296 in the post.

0
Login to Vote

Backlogged
CreatedApr 26, 2022
UpdatedNov 21, 2023
View Jira Issue