• Editor
  • Incorrect/misleading indentation in hierarchy

Related Discussions
...

The indentation in hierarchy is incorrect.
Precise speaking, I would say the fold/unfold triangle location is implemented badly. It is not calculated correctly but just append to the left whether an item in hierarchy foldable.

From the screenshot below, the top one shows LegUR unfolded while bottom shows LegUR folded. You can see that the siblings are indented and looks like to be children of LegUR in both folded and unfolded state. :bang:

I don't see anything incorrect here. :nerd: Items that do not have an expand/contract indicator have a blank space where the indicator would be. This is standard for most/all UIs, eg (while certainly not the most stunning example of good UX) here is Windows:

Image removed due to the lack of support for HTTPS. | Show Anyway

The .settings folder has a blank space to the left, where its expand indicator would be if it had children. In your bottom pic which shows siblings, your yellow dotted line is in the wrong place. Your eyes should be looking at this line, in green:

Image removed due to the lack of support for HTTPS. | Show Anyway

In other words, the icons are aligned horizontally for siblings, not the expand indicators.

Maybe you would like more indentation for children to better differentiate them from the parent? I will concede that the indentation amount is quite small, eg here it is highlighted in green:

Image removed due to the lack of support for HTTPS. | Show Anyway

It is most common for the indentation of the child icons to align with the parent text, which would look like:

Image removed due to the lack of support for HTTPS. | Show Anyway

Highlighted:

Image removed due to the lack of support for HTTPS. | Show Anyway

Increasing the indentation would cause the tree to use more horizontal space, much more for deeply nested nodes. We purposefully minimized the indentation to reduce how often the tree needs to scroll horizontally.

Ya, I think you are right about the expand indicator positioning. Obviously the Windows's sample looks much more correct to me and in spine the spacing just seems no enough. I now understand your reason to use less space in the child nodes (horizontal spacing) but it doesn't change the fact that it is causing misleading visual to some users like me. I would rather have the row longer than having things hard to read.

Here is Unity Editor sample which works just like the Windows sample and their parent child relation is very clear:

With correct spacing, the relation between rows really is much more easier to read.

I guess a better way to handle this issue is to add an option for user to decide whether they prefer clarity over horizontal spacing but not assume everyone does not have enough screen space...(esp dual-mon, 4k and 21:9 monitor is so common these days.) I personally think the default visual should to be more precise, but some people may like the current tight design so at least having an option to serve both party should be better solution for the problem.

We've increased the indentation in 3.7.13-beta and made it a setting on the Settings dialog. It ranges from 10 pixels (the old setting) to 20, and the default is 17. Cheers! :beer:

10:

Image removed due to the lack of support for HTTPS. | Show Anyway

17:

Image removed due to the lack of support for HTTPS. | Show Anyway

Wow! Looks good!
Thanks