Be sure that the useGeneralizedCompositing variable near the top of DemoUs.tsx is set to true
Run it in preview
If you don’t see the 2D Uis appear automatically, click on the green box to open them
. // You may have to click a second time, see issue #936
Click the button on Ui_2 to maximize Ui_2 and see a second button.
Click that second button
Immediately, before the Announcement goes away, click the first/original/right button
// Expected: the UI will minimize in place
// Actual: it minimizes, but jumps to the top left corner of the Announcement panel, and might disappear at the end of the announcement, or remain there for the rest of the scene session
Background: I needed a way to manage multiple unrelated 2D Uis being added and removed independently.
Why?
Because one can only call ReactEcsRenderer once in a scene,
Because my scenes sometimes need more than one 2D Ui
Because those Uis may be completely unrelated, in their own reusable modules, for example
a. BuilderHUD
b. CinemaControls
c. AdmissionTicket
d. Dance button
e. Stage Manager Controls
The example scene linked above demonstrates such a mechanism,
but also demonstrates some issues with SDK7 2D UIs, which I’ll report in decentraland/sdk,
including interfering with (cross-talking with) the properties of other UiEntities.
Background is provided in a comment
Steps to reproduce:
This is really ugly, please fix asap.