Description

The current implementation for inlining struct members is setup in a way where we start with the outermost struct and only recurse into any child structs if it contains the ShowOnlyInnerProperties metadata.

The current layout does not support recursing through every container/struct inside a structure to look for properties that want to be inlined unless you explicitly add the metadata to all levels of the nesting starting at the outermost. We would also have to take a look at the performance impact of always recursing through all nested children on any non trivial example if it was possible.

Steps to Reproduce
  • Create and add a new data asset by following these instructions:
    https://docs.unrealengine.com/5.2/en-US/data-assets-in-unreal-engine/
  • Have the content in the attached file be the content of your data asset header (MyDataAsset.h)
  • Run the editor and create a data asset of your type and open it
  • Notice Value1, Value2 and Value3 are not inline but are instead nested under "Inner" even though it has the ShowOnlyInnerProperties metadata

Have Comments or More Details?

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

1
Login to Vote

Backlogged
ComponentUE - Editor - Workflow Systems
Affects Versions5.4
CreatedNov 27, 2023
UpdatedJan 20, 2024
View Jira Issue