Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

[FREE] Borderless Unity Window

Discussion in 'Assets and Asset Store' started by Novack, Mar 26, 2019.

  1. Novack

    Novack

    Joined:
    Oct 28, 2009
    Posts:
    844

    Intro


    A small and simple package for making Unity frameless apps from script.

    Containing two script files and a sample scene (similar the demo that you can download separatedly).

    Given that it is not a stock Unity feature, if you need a borderless Unity game window, you can either undust some Windows API calls yourself, or use this tiny package.

    Features


    ✔ Borderless Windows.
    ✔ Drag Window.
    ✔ Minimize, Maximize, Restore.

    Demo

    You can download and test the demo, which is the standalone build of the included example.

    Disclaimmer

    • It only supports Windows OS.
    • Requires programming skills.

    Useful Links


    Facebook
    Twitter

    Check more tools


     
  2. Novack

    Novack

    Joined:
    Oct 28, 2009
    Posts:
    844


    Quick preview of the demo
     
  3. NorthStar79

    NorthStar79

    Joined:
    May 8, 2015
    Posts:
    88
    neat little tool. I will definitely check it out. thanks for sharing.
     
    Novack likes this.
  4. Novack

    Novack

    Joined:
    Oct 28, 2009
    Posts:
    844
    Thank you!
     
  5. dhon2407

    dhon2407

    Joined:
    Jun 9, 2018
    Posts:
    12
    How do you determine the Border size x, and border size y? Is it constant (8,40)? Mines reverting back with borders.
     
    unknownsk likes this.
  6. DryreL

    DryreL

    Joined:
    Feb 23, 2020
    Posts:
    49
    Thanks!
     
    Novack likes this.
  7. Novack

    Novack

    Joined:
    Oct 28, 2009
    Posts:
    844
    You're welcome @DryreL :)
    Sorry for the long delay, the post got lost in the turbulence.
     
  8. Minimilian

    Minimilian

    Joined:
    Jan 19, 2021
    Posts:
    23
    A little utility, but a big help for those among us who are basically only used to Unity C#.
    Saved me quite some time, thanks a lot!

    In case anyone wonders, it works on Unity 2021. :)
    I can see no reason why it shouldn't, to be honest, but you can now rest assured :)

    I had a small issue with the script "wanting" to resize my project to the wrong window size, but it turned out to be something with Unity. In case anyone else has this issue, it can be solved as follows. (there might be redundant passages but this is what worked for me)

    1. Double check everything window-size related
    2. Set the Window size to your preferred size in the script
    3. Call
      ResetWindowSize()
      somewhere in Start (I modified
      WindowScript.cs
    4. Rename the project in the Project Settings if the issue persists
    5. Build
    6. Profit
     
  9. Novack

    Novack

    Joined:
    Oct 28, 2009
    Posts:
    844
    Hey @Minimilian thanks and very glad its helpful :)

    Thank you for the heads up regarding the issue you found and the steps to handle it.

    Cheers!
     
    Minimilian likes this.