Hi everyone, I will try to explain my problem as clear as possible. I suspect there is something really small that I am missing.
At the moment I have my scene with the following elements:
Main Camera
- UI canvas
- pause button
- etc …
Game canvas
- player
- game object 1
- game object 2
- etc …
At the moment I update the camera position with the player’s position such that the camera follows the player.
The UI canvas:
render mode: screen space - camera with the Main Camera
The Game canvas:
render mode: world space with the Main Camera
Changing render mode of the Game canvas to “screen space” freezes the camera position, nothing moves.
My aim is to follow the player with the camera, and at the same time I would like to resize the game canvas based on the device screen.
Maybe my approach is not the most efficient/correct one. Any help is appreciated, Thank you!