Skip to content

Remove the title bar and make Unity games borderless on Windows

Notifications You must be signed in to change notification settings

Slyt4il/UnityBorderlessToggle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Unity Borderless Toggle

A simple script to remove the title bar and make Unity games borderless on Windows platform.

demo

Setup

  • Place BorderlessToggle.cs on a GameObject.
  • Call ToggleBorders(), SetBorderless(), or SetBordered() on that script.

Windows 11 rounded corners

This script opts in to rounded corners on Windows 11 by passing the value of DWM_WINDOW_CORNER_PREFERENCE.DWMWCP_ROUND to the DwmSetWindowAttribute function. If not desired, comment out line 94 in the SetBorderless() function.

About

Remove the title bar and make Unity games borderless on Windows

Topics

Resources

Stars

Watchers

Forks

Languages