- Place
BorderlessToggle.cson a GameObject. - Call
ToggleBorders(),SetBorderless(), orSetBordered()on that script.
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.
