Hey, I’m looking to center my camera on the player’s game object as it walks around the game world. In order to do this, I need to know the current size of the window so I can offset the camera’s position by half of the window’s dimensions.
I saw that there’s a callback for listening to window resize messages. Would I implement this in the render script? I am a little confused because I thought that the render script already listens to window resizes, but apparently not by default. A little guidance would be helpful. Thanks.
Edit: I cannot add the camera to the player’s game object because the camera will be changing its target periodically, based on what’s happening in the game.