galacean / engine

A typescript interactive engine, support 2D, 3D, animation, physics, built on WebGL and glTF.
https://galacean.antgroup.com/
MIT License
4.04k stars 289 forks source link

Fix renderer component's order is random now #2097

Closed zhuxudong closed 1 month ago

zhuxudong commented 1 month ago

Please check if the PR fulfills these requirements

fix https://github.com/galacean/editor/issues/2657

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

The additive ability in editor use the index of Renderer Component, so the order of the components must be fixed: image

What is the new behavior (if this is a feature change)?

addComponent(Renderer) after all materialPromise finished.