I have my project with 2 cameras. One is the main camera, that captures the gameplay and follow the player.
The Problem i had is that when the camera start to move the ui stay in place and get outside of the screen.
so what i did is to add a second camera and put aside of the game area.
when i test the game using cocos it works fine
but when i upload to facebook instant games when i test it uses the full width and renders the two cameras together
what is the correct procedure for creating an UI for a moving camera?