2 Commits

Author SHA1 Message Date
aa52a2a58d fix: RouterComponent should be on top (#3524)
To get the `WorldRoute` and `world` to work well with other components,
the `RouterComponent` needs to be on top.

This also fixes a small deprecation in the index.html file for the
examples.
2025-03-13 07:48:13 +05:30
497f128f8c feat: Add WorldRoute to enable swapping worlds from the RouterComponent (#3372)
This PR adds the `WorldRoute` which acts as a normal route, but instead
of adding a new component (page), it swaps out the world that the camera
(either the default camera or an explicitly passed in one) is watching.
2024-11-24 15:05:08 +01:00