I apologize if this has been discussed elsewhere, but I could not find anything relating to this issue in the forums. This may be an easy fix that I am just missing something, but I feel a little crazy. I have my game working inside the Unity 2018.2.6f1 game viewport. I set up the camera constraints in each scene and they work flawlessly in the viewport. You can see this here -
http://www.janinesmoment.com/wp-content/uploads/2018/09/unity_game_viewport.jpgNow, I need to get this built for the web for my daughter's project, but the players keep cutting off the edges of the screen, so no one can click the door to get out of that room visible in the first picture.
I tried the webgl build, and I have tried many different player settings, but I can find nothing that works. Here is a shot with the default resolution set to 1280 x 720.
http://www.janinesmoment.com/wp-content/uploads/2018/09/game_in_webgl.jpg Notice that the bedroom door is missing completely. The player character cannot walk any further to show the door either, but you can walk to the other side of the room with no issues. It does not show the correct edge on the other side either, but nothing clickable is missing on that side.
When I maximize the WebGL player, you get this. Notice, the door is still missing.
http://www.janinesmoment.com/wp-content/uploads/2018/09/game_in_webgl_maximized.jpgI then did a build out for PC, Stand Alone. When you run the game, it begins windowed.
http://www.janinesmoment.com/wp-content/uploads/2018/09/game_in_windowed.jpg The door is missing in this view, but if you maximize the stand alone player, you see enough of the door to click.
http://www.janinesmoment.com/wp-content/uploads/2018/09/game_in_windowed_maximized.jpgSo, I do not know what setting I am missing, but I am pulling my hair out. Any assistance with this would be appreciated greatly. My apologies if this is in the wrong section, or if it is a specific Unity forum only question. I did not see anything like this in their forums either, so I am assuming I am missing something simple. Thank you all for your time.
Comments
Though enforcing the ratio as above should solve it, see this wiki script if interested:
https://adventure-creator.wikia.com/wiki/Dynamic_2D_camera_limits