Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
This post has been wikified, any user with enough reputation can edit it.
avatar image
9
Question by lowbloodsugar · Mar 12, 2010 at 07:33 PM · resolutionstandalonefullscreenmultiple-monitors

Borderless window in standalone player

Is it possible to make the Unity windows standalone player run borderless? This would be similar to the OSX Dashboard Widget.

function Start () { if (Application.platform == RuntimePlatform.WindowsPlayer) { Screen.fullScreen = false;

 print("Disable window border here");

} }

Comment
Add comment · Show 4
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Michael La Voie · Mar 12, 2010 at 08:31 PM 0
Share

Why is this a wiki?

avatar image Motionreactor · Mar 13, 2010 at 02:31 PM 0
Share

This confuses me too... what is going on here?

avatar image x4000 · Mar 21, 2010 at 01:07 AM 0
Share

This seems like a really sensible question to me. I have done this sort of thing in prior games, and it would be really nice to be able to do it with Unity, too.

avatar image naruse · Mar 22, 2010 at 01:21 PM 0
Share

As far as I know, there is no option on the API to run your app borderless :(, if you get to know how, let me know :)

5 Replies

· Add your reply
  • Sort: 
avatar image
24
Best Answer

Answer by clunk47 · Dec 13, 2012 at 09:36 PM

Of course it's easy. I do it by creating a shortcut or batch file that starts the exe, instead of running the exe file. For example, a batch file. This is just an example, so say our EXE name is RUN.EXE. You would open Notepad, type the following:

start RUN.EXE -popupwindow

Then File> Save as> and in the filename where it says .txt originally, just remove that and use an asterick and a bat extension (*.bat) Hit ENTER, then it will know you want to save as a bat file. Now just type in a name like Launcher.bat, don't forget to remove the asterick but keep the .bat extension. Now you would run this Launcher file. The argument -popupwindow is what allows your Unity Standalone EXE to run without borders :D

Comment
Add comment · Show 7 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image clunk47 · Dec 13, 2012 at 09:37 PM 1
Share

Also if you create a shortcut to your exe on your desktop, just go to the shortcut properties and add the -popupwindow argument to the target.

avatar image tkcast · Feb 08, 2013 at 04:57 PM 1
Share

hey, great solution!!! i wish i could vote this up =)

avatar image superddr · Jun 18, 2013 at 07:11 AM 1
Share

finally solved my problem, thank you very much!

avatar image Nyaffn_2 · Apr 14, 2014 at 05:14 AM 0
Share

Thank you!!!!

avatar image clunk47 · May 23, 2014 at 08:11 PM 0
Share

Always happy to help ;)

Show more comments
avatar image
3

Answer by Dave-Carlile · Apr 08, 2016 at 11:11 PM

There is now a setting in Player Settings for the fullscreen mode. Set it to Fullscreen Window.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image ruudvangaal · May 11, 2017 at 09:17 AM 0
Share

Fullscreen is different from borderless; a borderless window does not have to cover the entire screen. Fullscreen does. When you're driving 2 monitors, each with their own app, borderless windows are useful (you can't use Fullscreen in that case).

avatar image
1
Wiki

Answer by Wolfram · Oct 27, 2010 at 06:05 PM

You can use external tools such as AutoHotKey to get rid of the window decorations/borders/title. Note however that Unity's rendering canvas will be scaled, not resized, so you will lose some Anti-Aliasing quality - unless you have AA disabled, in which case you will gain some antialiasing due to the interpolated scaling.

Take a look at this thread for detailed information: http://forums.darkfallonline.com/showthread.php?t=242644

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by NightmarexGR · Feb 24, 2015 at 11:56 AM


I just uploaded a unity build-in plugin that lets you do exactly what you ask for (Removing window borders and gives you the ability to move and resize the window through code) https://www.assetstore.unity3d.com/en/#!/content/30563


Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Djayp · Jun 03, 2017 at 11:33 AM

Using user32.dll

http://www.pixelstudio.nl/?p=204

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

8 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

SetResolution in full screen is a nightmare (Standalone Windows) 1 Answer

Screen.SetResolution doesn't work when the game starts windowed? 0 Answers

Capture Single Screen Mac alternative ? 1 Answer

Comodo Firewall hangs Unity in fullscreen standalone mode 0 Answers

gui texture different scale in full screen game. 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges