playcanvas / editor

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

Entities with no model to have a visual representation in the Scene Editor #355

Open yaustar opened 3 years ago

yaustar commented 3 years ago

There are times where Entities are used as a reference point such as points on a path as shown in this project: https://playcanvas.com/editor/project/438429

It would be great if there was an option on the Entity to show a selectable mesh representation such as a sphere or a 3 axis object so that (in this case) a path is more visible and easier to work with without having to manually add and remove model components to it.

Maksims commented 3 years ago

There is an icon system currently. If the entity is not renderable, then it adds an icon based on components added to it.

A way to enable rendering an icon for a non-renderable entity without any components - would help here. The same icon as in hierarchy - is a good UX, so simple round circle.

But it should not render an icon for an entity that has a renderable descendant.

yaustar commented 3 years ago

Icons could work 🤔 For my use case, I ideally would like them to be depth tested so they don't render on top if the entity is behind a model for example. Otherwise making paths is a bit tricky if I can't really tell if an entity is in front or behind a box for example

Maksims commented 3 years ago

Icons do have 2 layers of rendering: normal (depth tested), and obscured (half visible), so you clearly see if it is inside of a model or in front of it.

Although check related issue with icons rendering: https://github.com/playcanvas/editor/issues/360