The molang query "q.is_in_ui" returns 0.0 instead of 1.0 when accessed on the player actor in the pause menu and in the main menu.
Steps to reproduce:
Import the attached resource pack. It sets the player scale to 0.2 when q.is_in_ui returns 0.0, else it sets the scale to 3.
Open the main menu: the player actor on the right will be small (q.is_in_ui = false, but the actor is in the ui)
Open a world and open the pause menu: the player actor on the right will be small (q.is_in_ui = false, but the actor is in the ui)
Open the inventory or look at the paperdoll in the top left corner of the screen: the player actor will be big (q.is_in_ui = true: the resource pack works)
Linked issues
Attachments
Comments 5

Can confirm, affects 1.21.40.21. Relates to MCPE-173182
Thank you for your feedback!
However, the issue is being temporarily resolved as Awaiting Response.
Please, let us know whether the bug still occurs on the latest versions. In case it is, please, update the Affects Version/s field.
Once the requested information has been delivered, the report will be reopened automatically.
Quick Links:
📓 Bug Tracker Guidelines – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki