{"author_link":"\/users\/thyoi","author_name":"thyoi","author_uid":"thyoi","comments":[],"epoch":1664846818,"event":"LD51","format":"md","ldjam_node_id":307909,"likes":3,"metadata":{"p_key":"168328","p_author":"thyoi","p_authorkey":"1277851","p_urlkey":"396085","p_title":"Unity Games Avoid Borders Setting","p_cat":"LDJam ","p_event":"LD51","p_time":"1664846818","p_likes":"3","p_comments":"0","p_status":"WAYBACK","us_key":"1277851","us_name":"LDJam user 277851","us_username":"277851","event_start":"1664496000","event_key":"114","event_name":"Ludum Dare 51"},"node":{"_collation":{"body_sanitizer":"TextUtils::SanitizeHTML via existing importer","event":"LD51","removed_author":false},"_superparent":296586,"_trust":2,"author":277851,"body":"## I' just hit the update button in accident and this old post seems come to the top of my flow. I must claim that I have switched to godot, and I'm waiting the new function in godot 4.3 which alows me to embed game in ld page. if you know how to embed game from 4.2 please tell me.\n\nIt took me some time to work out how to upload the unity game so that it embeds correctly without border.\n\nI've noticed that some unity authors face same problems, so I write this to show you how to do.\n\n# Step1\n\nSelect the minimized template\n\nIn Edit\/ProjectSetting\/WebGL Setting\n\nAnd make sure the canvas size is less than 948*533\n\n![tem.png](\/\/\/raw\/b5d\/34\/z\/51bf4.png)\n\n# Step2\n\nAfter the build, make edits to Index.html\n\n## Step2.1\n\nThe problem that lead to the bord is that < body > has a default margin\n\nAdd \"margin:0px\" to body.style\n\n## Step2.2\n\nIf the size of your game is exactly 948x533\n\n\nthen body will produce a scrollbar that block your game\n\n\nAdd \"overflow:hidden\" to body.style\n\n\n#### The final < body > should look like this\n\n```\n<body style=\"text-align: center;margin:0px;overflow:hidden\">\n```\n","comments":1,"comments-timestamp":"2022-10-04T01:38:30Z","created":"2022-10-04T00:55:04Z","files":[],"files-timestamp":0,"id":307909,"love":3,"love-timestamp":"2022-10-04T01:39:25Z","meta":[],"modified":"2024-07-06T05:06:51Z","name":"Unity Games Avoid Borders Setting","node-timestamp":"2024-07-06T05:06:51Z","parent":296730,"parents":[1,5,9,296586,296730],"path":"\/events\/ludum-dare\/51\/minigames\/unity-games-avoid-borders-setting","published":"2022-10-04T01:26:58Z","scope":"public","slug":"unity-games-avoid-borders-setting","subsubtype":"","subtype":"","type":"post","version":1239194},"node_metadata":{"n_key":"307909","n_urlkey":"396085","n_parent":"296730","n_path":"\/events\/ludum-dare\/51\/minigames\/unity-games-avoid-borders-setting","n_slug":"unity-games-avoid-borders-settin","n_type":"post","n_subtype":"","n_subsubtype":"","n_author":"277851","n_created":"1664844904","n_modified":"1720242411","n_version":"1239194","n_status":"WAYBACK"},"source_url":"https:\/\/ldjam.com\/events\/ludum-dare\/51\/minigames\/unity-games-avoid-borders-setting","text":"## I' just hit the update button in accident and this old post seems come to the top of my flow. I must claim that I have switched to godot, and I'm waiting the new function in godot 4.3 which alows me to embed game in ld page. if you know how to embed game from 4.2 please tell me.\n\nIt took me some time to work out how to upload the unity game so that it embeds correctly without border.\n\nI've noticed that some unity authors face same problems, so I write this to show you how to do.\n\n# Step1\n\nSelect the minimized template\n\nIn Edit\/ProjectSetting\/WebGL Setting\n\nAnd make sure the canvas size is less than 948*533\n\n![tem.png](\/\/\/raw\/b5d\/34\/z\/51bf4.png)\n\n# Step2\n\nAfter the build, make edits to Index.html\n\n## Step2.1\n\nThe problem that lead to the bord is that < body > has a default margin\n\nAdd \"margin:0px\" to body.style\n\n## Step2.2\n\nIf the size of your game is exactly 948x533\n\n\nthen body will produce a scrollbar that block your game\n\n\nAdd \"overflow:hidden\" to body.style\n\n\n#### The final < body > should look like this\n\n```\n<body style=\"text-align: center;margin:0px;overflow:hidden\">\n```\n","title":"Unity Games Avoid Borders Setting","wayback_source":[]}