playcanvas / editor

Issue tracker for the PlayCanvas Editor
https://playcanvas.com/
158 stars 28 forks source link

Be able to collapse all children's children in hierarchy view #861

Closed yaustar closed 1 year ago

yaustar commented 2 years ago

In a scenario like this:

image

It would be useful to be able to collapse the all the children's children in the hierarchy view to this state

image

Suggestions have been to have a right click option on the parent to do this

image
yaustar commented 2 years ago

@jiajasper UX design pass please?

lucaheft commented 2 years ago

I just came across this by accident. This is already achievable by these 2 steps:

  1. ALT + Click onto the "-" of Character Controller to collapse all nodes
  2. Click "+" of Character Controller to expand again
yaustar commented 2 years ago

Ah, that's an interesting workaround @lucaheft !

lucaheft commented 2 years ago

Yeah, i think that's the default for most applications. Unity does it the same way. I don't think there is a need to clutter the context menu with an extra option for this.

willeastcott commented 1 year ago

@lucaheft is correct - that's how a PCUI TreeView works. Should probably be mentioned in the Editor docs on the developer site.

Closing.